|
@@ -17,7 +17,8 @@ void parse_args(int argc, char **argv,
|
|
"\t\tMapInfo File: directory containing a mapinfo file\n"
|
|
"\t\tMapInfo File: directory containing a mapinfo file\n"
|
|
"\t\tPostGIS database: connection string, eg. 'PG:dbname=db user=grass'");
|
|
"\t\tPostGIS database: connection string, eg. 'PG:dbname=db user=grass'");
|
|
options->dsn->required = YES;
|
|
options->dsn->required = YES;
|
|
-
|
|
|
|
|
|
+ options->dsn->gisprompt = "old,datasource,datasource";
|
|
|
|
+
|
|
options->layer = G_define_option();
|
|
options->layer = G_define_option();
|
|
options->layer->key = "layer";
|
|
options->layer->key = "layer";
|
|
options->layer->type = TYPE_STRING;
|
|
options->layer->type = TYPE_STRING;
|
|
@@ -30,7 +31,8 @@ void parse_args(int argc, char **argv,
|
|
"\t\tPostGIS database: table name");
|
|
"\t\tPostGIS database: table name");
|
|
options->layer->required = YES;
|
|
options->layer->required = YES;
|
|
options->layer->key_desc = "name";
|
|
options->layer->key_desc = "name";
|
|
-
|
|
|
|
|
|
+ options->layer->gisprompt = "old,datasource_layer,datasource_layer";
|
|
|
|
+
|
|
options->output = G_define_standard_option(G_OPT_V_OUTPUT);
|
|
options->output = G_define_standard_option(G_OPT_V_OUTPUT);
|
|
options->output->required = NO;
|
|
options->output->required = NO;
|
|
options->output->description = _("Name for output GRASS vector map (default: input layer)");
|
|
options->output->description = _("Name for output GRASS vector map (default: input layer)");
|