瀏覽代碼

d.colorlist: description cosmetics, default sep changed to comma

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63193 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父節點
當前提交
fb3f30a765
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      display/d.colorlist/main.c

+ 4 - 3
display/d.colorlist/main.c

@@ -34,18 +34,19 @@ int main(int argc, char **argv)
     module = G_define_module();
     G_add_keyword(_("display"));
     G_add_keyword(_("settings"));
+    G_add_keyword(_("colors"));
     module->description =
-	"Output a list of all available display colors with a configurable "
-	"separator (default is comma).";
+	_("Outputs a list of all available display colors.");
 
     /* set up option */
     sep = G_define_standard_option(G_OPT_F_SEP);
+    sep->answer = "comma";
     
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
     sep_str = G_option_to_separator(sep);
-
+    
     colorlist = G_store(D_COLOR_LIST);
 
     /* if separator is different from ",", escape this character */