17#include "parser_local_proto.h"
19static void print_escaped_for_rest(
FILE *f,
const char *str);
20static void print_escaped_for_rest_options(
FILE *f,
const char *str);
41 for (s = 0; s <=
strlen(
st->pgm_name); s++) {
47 for (s = 0; s <=
strlen(
st->pgm_name); s++) {
59 if (
st->module_info.label ||
st->module_info.description)
62 if (
st->module_info.label)
65 if (
st->module_info.description)
69 if (
st->module_info.keywords) {
93 opt = &
st->first_option;
146 if (
flag->description) {
156 _(
"Allow output files to overwrite existing files"));
170 opt = &
st->first_option;
176 type =
opt->key_desc;
203 print_escaped_for_rest(
stdout,
opt->label);
207 if (
opt->description) {
209 print_escaped_for_rest(
stdout,
opt->description);
216 print_escaped_for_rest_options(
stdout,
opt->options);
226 print_escaped_for_rest(
stdout,
opt->def);
236 while (
opt->opts[i]) {
239 print_escaped_for_rest(
stdout,
opt->opts[i]);
242 print_escaped_for_rest(
stdout,
opt->descs[i]);
260#define do_escape(c, escaped) \
264void print_escaped_for_rest(
FILE *f,
const char *str)
268 for (s = str; *s; s++) {
277void print_escaped_for_rest_options(
FILE *f,
const char *str)
281 for (s = str; *s; s++) {
const char * G_program_name(void)
Return module name.
void G__print_keywords(FILE *fd, void(*format)(FILE *, const char *), int newline)
Print list of keywords (internal use only)
int G__uses_new_gisprompt(void)
#define do_escape(c, escaped)
Format text for reStructuredText output.
void G__usage_rest(void)
Print module usage description in reStructuredText format.
Structure that stores flag info.
Structure that stores option information.