2 * Copyright (C) 2013 Tobias Brunner
3 * Hochschule fuer Technik Rapperswil
5 * Copyright (C) 2013 Martin Willi
6 * Copyright (C) 2013 revosec AG
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * @defgroup cmd_option cmd_option
27 typedef struct cmd_option_t cmd_option_t
;
28 typedef enum cmd_option_type_t cmd_option_type_t
;
31 * Command line options
33 enum cmd_option_type_t
{
41 CMD_OPT_REMOTE_IDENTITY
,
57 * Command line arguments, similar to "struct option", but with descriptions
60 /** option identifier */
62 /** long option name */
66 /** decription of argument */
68 /** short description to option */
70 /** additional description lines */
71 const char *lines
[12];
75 * Registered CMD options.
77 extern cmd_option_t cmd_options
[CMD_OPT_COUNT
];
79 #endif /** CMD_OPTION_H_ @}*/