Skip to content

Commit

Permalink
lib/parser: Use project for G_OPT_M_LOCATION
Browse files Browse the repository at this point in the history
Standard option G_OPT_M_LOCATION which creates option named location now creates option named location. Each module using G_OPT_M_LOCATION without further modifications has its own entry in in the renamed options file for backwards compatibility.
  • Loading branch information
wenzeslaus committed Aug 16, 2023
1 parent 0f13c4d commit 8b428fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gis/parser_standard_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,12 +694,12 @@ struct Option *G_define_standard_option(int opt)
break;

case G_OPT_M_LOCATION:
Opt->key = "location";
Opt->key = "project";
Opt->type = TYPE_STRING;
Opt->required = NO;
Opt->multiple = NO;
Opt->label = _("Location name");
Opt->description = _("Location name (not location path)");
Opt->label = _("Project (location) name");
Opt->description = _("Project name (not path to project)");
Opt->gisprompt = "old,location,location";
Opt->key_desc = "name";
break;
Expand Down
7 changes: 7 additions & 0 deletions lib/gis/renamed_options
Original file line number Diff line number Diff line change
Expand Up @@ -718,3 +718,10 @@ v.what.vect|qvector:query_map
v.what.vect|qlayer:query_layer
v.what.vect|qcolumn:query_column
v.what.vect|vector:map
### Renamed options for location to project rename (8.3->8.4)
#############################################################
g.mapset|location:project
r.proj|location:project
i.ortho.elev|location:project
g.download.location|location:project
v.proj|location:project

0 comments on commit 8b428fb

Please sign in to comment.