19#include "parser_local_proto.h"
21static void print_escaped_for_rest(
FILE *f,
const char *str);
22static void print_escaped_for_rest_options(
FILE *f,
const char *str);
43 for (s = 0; s <=
strlen(
st->pgm_name); s++) {
49 for (s = 0; s <=
strlen(
st->pgm_name); s++) {
61 if (
st->module_info.label ||
st->module_info.description)
64 if (
st->module_info.label)
67 if (
st->module_info.description)
71 if (
st->module_info.keywords) {
95 opt = &
st->first_option;
148 if (
flag->description) {
158 _(
"Allow output files to overwrite existing files"));
172 opt = &
st->first_option;
178 type =
opt->key_desc;
205 print_escaped_for_rest(
stdout,
opt->label);
209 if (
opt->description) {
211 print_escaped_for_rest(
stdout,
opt->description);
218 print_escaped_for_rest_options(
stdout,
opt->options);
228 print_escaped_for_rest(
stdout,
opt->def);
238 while (
opt->opts[i]) {
241 print_escaped_for_rest(
stdout,
opt->opts[i]);
244 print_escaped_for_rest(
stdout,
opt->descs[i]);
262#define do_escape(c, escaped) \
266void print_escaped_for_rest(
FILE *f,
const char *str)
270 for (s = str; *s; s++) {
279void print_escaped_for_rest_options(
FILE *f,
const char *str)
283 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.