3 * \author written by Emmanuel Roullit emmanuel.roullit@gmail.com (c) 2013
12 static const char _usage
[] =
13 "usage: dabbad [<args>]\n\n" "The available options are:\n";
16 * \brief Show dabbad usage options
17 * \param[in] opt Pointer to option structure array
20 void show_usage(const struct option
*opt
)
27 while (opt
->name
!= NULL
) {
28 printf(" --%s", opt
->name
);
29 if (opt
->has_arg
== required_argument
)
31 else if (opt
->has_arg
== optional_argument
)
41 * \brief Show current \c dabbad version on \c stdout
42 * \return Always returns 0.
45 int print_version(void)
47 printf("dabbad version %s\n", DABBA_VERSION
);