17#include "parser_local_proto.h"
19static void print_cli_flag(
FILE *
file,
const char *key,
const char *label,
20 const char *description,
const char *
indent);
25void print_cli_flag(
FILE *
file,
const char *key,
const char *label,
26 const char *description,
const char *
indent)
41 if (description !=
NULL) {
86 if (
opt->description) {
106 if (
opt->def &&
opt->def[0] !=
'\0') {
120 while (
opt->opts[i]) {
126 if (
opt->gisprompt) {
127 if (
strcmp(
opt->gisprompt,
"old,colortable,colortable") ==
130 else if (
strcmp(
opt->gisprompt,
"old,barscale,barscale") ==
134 "old,northarrow,northarrow") == 0)
170 opt = &
st->first_option;
263 opt = &
st->first_option;
267 type =
opt->key_desc;
320 opt = &
st->first_option;
340 print_cli_flag(
file,
"overwrite",
NULL,
341 _(
"Allow output files to overwrite existing files"),
351 print_cli_flag(
file,
"verbose",
NULL,
_(
"Verbose module output"),
indent);
357 print_cli_flag(
file,
"qq",
NULL,
_(
"Very quiet module output"),
indent);
360 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.