36#define SPECLIST_TAG cmdarg
37#define SPECLIST_TYPE struct cmdarg
39#define cmdarg_list_iterate(cmdarg_list, pcmdarg) \
40 TYPED_LIST_ITERATE(struct cmdarg, cmdarg_list, pcmdarg)
41#define cmdarg_list_iterate_end LIST_ITERATE_END
87 const char *longarg,
const char *helpstr, ...)
112 if (
pcmdarg->shortarg !=
'\0') {
130 _(
"Pass any following options to the UI."));
static struct cmdarg * cmdarg_new(const char *shortarg, const char *longarg, const char *helpstr)
static int cmdarg_compare(const struct cmdarg *const *pcmdarg0, const struct cmdarg *const *pcmdarg1)
void cmdhelp_destroy(struct cmdhelp *pcmdhelp)
#define cmdarg_list_iterate(cmdarg_list, pcmdarg)
void cmdhelp_display(struct cmdhelp *pcmdhelp, bool sort, bool gui_options, bool report_bugs)
#define cmdarg_list_iterate_end
static void cmdarg_destroy(struct cmdarg *pcmdarg)
struct cmdhelp * cmdhelp_new(const char *cmdname)
void cmdhelp_add(struct cmdhelp *pcmdhelp, const char *shortarg, const char *longarg, const char *helpstr,...)
void fc_fprintf(FILE *stream, const char *format,...) fc__attribute((__format__(__printf__
#define fc_calloc(n, esz)
struct client_options gui_options
struct cmdarg_list * cmdarglist
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_strcasecmp(const char *str0, const char *str1)
int fc_vsnprintf(char *str, size_t n, const char *format, va_list ap)
const char * fc_basename(const char *path)