81 goto err_parse_options;
138 "[<label> [<text>]]" );
157 goto err_parse_options;
181 goto err_add_menu_item;
239 goto err_parse_options;
244 goto err_parse_setting;
260 item->
label ) ) != 0 ) {
261 printf (
"Could not store \"%s\": %s\n",
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
int parse_key(char *text, unsigned int *key)
Parse key.
int optind
Current option index.
#define DHCP_EB_FEATURE_MENU
Menu support.
int parse_timeout(char *text, unsigned long *value)
Parse timeout value (in ms)
int parse_autovivified_setting(char *text, struct named_setting *setting)
Parse and autovivify setting name.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
#define ENOMEM
Not enough space.
char * select
Default selection.
Parse command-line options.
int parse_string(char *text, char **value)
Parse string value.
#define MAX_ARGUMENTS
No maximum number of arguments.
char * concat_args(char **args)
Concatenate arguments.
const struct setting_type * type
Setting type.
int is_default
Use as default.
#define FEATURE_MISC
Miscellaneous.
int storef_setting(struct settings *settings, const struct setting *setting, const char *value)
Store formatted value of setting.
int parse_flag(char *text __unused, int *flag)
Parse flag.
char * strerror(int errno)
Retrieve string representation of error number.
static void(* free)(struct refcnt *refcnt))
Command line option parsing.
int select(fd_set *readfds, int wait)
Check file descriptors for readiness.
Option does not take an argument.
static union @437 opts
"cert<xxx>" option list
const char * name
Name of the command.
int is_gap
Use as a separator.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
int parse_menu(char *text, struct menu **menu)
Parse menu name.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
unsigned long timeout
Timeout.
#define NULL
NULL pointer (VOID *)
unsigned int key
Shortcut key.