Changeset 62248
- Timestamp:
- Oct 13, 2014, 6:39:11 PM (10 years ago)
- Location:
- grass/trunk/general
- Files:
-
- 2 edited
-
g.list/main.c (modified) (2 diffs)
-
g.remove/main.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/general/g.list/main.c
r62220 r62248 115 115 opt.separator = G_define_standard_option(G_OPT_F_SEP); 116 116 opt.separator->answer = "newline"; 117 opt.separator->guisection = _("Print"); 117 118 118 119 opt.region = G_define_standard_option(G_OPT_M_REGION); … … 125 126 opt.output->label = _("Name for output file"); 126 127 opt.output->description = _("If not given or '-' then standard output"); 128 opt.output->guisection = _("Print"); 127 129 128 130 flag.regex = G_define_flag(); -
grass/trunk/general/g.remove/main.c
r62244 r62248 81 81 opt.type->guidependency = "pattern,exclude,names,ignore"; 82 82 83 opt.pattern = G_define_option();84 opt.pattern->key = "pattern";85 opt.pattern->type = TYPE_STRING;86 opt.pattern->description = _("File name search pattern");87 opt.pattern->guisection = _("Pattern");88 89 opt.exclude = G_define_option();90 opt.exclude->key = "exclude";91 opt.exclude->type = TYPE_STRING;92 opt.exclude->description = _("File name exclusion pattern (default: none)");93 opt.exclude->guisection = _("Pattern");94 95 83 opt.names = G_define_option(); 96 84 opt.names->key = "names"; … … 110 98 opt.ignore->guisection = _("Names"); 111 99 100 opt.pattern = G_define_option(); 101 opt.pattern->key = "pattern"; 102 opt.pattern->type = TYPE_STRING; 103 opt.pattern->description = _("File name search pattern"); 104 opt.pattern->guisection = _("Pattern"); 105 106 opt.exclude = G_define_option(); 107 opt.exclude->key = "exclude"; 108 opt.exclude->type = TYPE_STRING; 109 opt.exclude->description = _("File name exclusion pattern (default: none)"); 110 opt.exclude->guisection = _("Pattern"); 111 112 112 flag.regex = G_define_flag(); 113 113 flag.regex->key = 'r'; 114 114 flag.regex->description = 115 115 _("Use basic regular expressions instead of wildcards"); 116 flag.regex->guisection = _("Pattern"); 116 117 117 118 flag.extended = G_define_flag(); … … 119 120 flag.extended->description = 120 121 _("Use extended regular expressions instead of wildcards"); 122 flag.extended->guisection = _("Pattern"); 121 123 122 124 flag.force = G_define_flag(); … … 128 130 flag.basemap->key = 'b'; 129 131 flag.basemap->description = _("Remove base raster maps"); 130 flag.basemap->guisection = _("Raster"); 131 132 132 133 G_option_exclusive(flag.regex, flag.extended, NULL); 133 134 G_option_exclusive(opt.pattern, opt.names, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
