1 /* __LICENSE_HEADER_BEGIN__ */
4 * Copyright (C) 2012 Emmanuel Roullit <emmanuel.roullit@gmail.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at
9 * your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
22 /* __LICENSE_HEADER_END__ */
28 static const char _usage
[] =
29 "usage: dabbad [<args>]\n\n" "The available options are:\n";
31 void show_usage(const struct option
const *opt
)
38 while (opt
->name
!= NULL
) {
39 printf(" --%s", opt
->name
);
40 if (opt
->has_arg
== required_argument
)
42 else if (opt
->has_arg
== optional_argument
)