19#include "parser_local_proto.h"
21static void print_cli_flag(
FILE *
file,
const char *key,
const char *label,
22 const char *description,
const char *
indent);
27void print_cli_flag(
FILE *
file,
const char *key,
const char *label,
28 const char *description,
const char *
indent)
43 if (description !=
NULL) {
88 if (
opt->description) {
108 if (
opt->def &&
opt->def[0] !=
'\0') {
122 while (
opt->opts[i]) {
128 if (
opt->gisprompt) {
129 if (
strcmp(
opt->gisprompt,
"old,colortable,colortable") ==
132 else if (
strcmp(
opt->gisprompt,
"old,barscale,barscale") ==
136 "old,northarrow,northarrow") == 0)
172 opt = &
st->first_option;
265 opt = &
st->first_option;
269 type =
opt->key_desc;
322 opt = &
st->first_option;
342 print_cli_flag(
file,
"overwrite",
NULL,
343 _(
"Allow output files to overwrite existing files"),
353 print_cli_flag(
file,
"verbose",
NULL,
_(
"Verbose module output"),
indent);
359 print_cli_flag(
file,
"qq",
NULL,
_(
"Very quiet module output"),
indent);
362 print_cli_flag(
file,
"ui",
NULL,
_(
"Force launching GUI dialog"),
indent);
void G_free(void *)
Free allocated memory.
char ** G_tokenize(const char *, const char *)
Tokenize string.
void G_free_tokens(char **)
Free memory allocated to tokens.
char * G_chop(char *)
Chop leading and trailing white spaces.
char * G_store(const char *)
Copy string to allocated memory.
int G__uses_new_gisprompt(void)
const struct Option * G__first_required_option_from_rules(void)
void G__md_print_cli_long_version(FILE *file, const char *indent)
void G__md_print_cli_short_version(FILE *file, const char *indent)
void G__md_print_escaped(FILE *f, const char *str, const char *indent)
void G__md_print_escaped_for_options(FILE *f, const char *str)
Structure that stores flag info.
Structure that stores option information.