Opened 16 years ago
Closed 11 years ago
#178 closed enhancement (fixed)
g.copy/g.rename help message
Reported by: | hcho | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 7.0.0 |
Component: | Default | Version: | svn-trunk |
Keywords: | copy, rename, overwrite | Cc: | |
CPU: | Unspecified | Platform: | All |
Description
Currently, --o and --overwrite flags are automatically added to help messages when the age of any gisprompt is new. g.copy and g.rename do not define any such gisprompts and their help messages do not list the overwrite flag, which actually works with these modules.
New users may not notice the availability of this flag for g.copy/g.rename.
Change History (5)
follow-up: 2 comment:1 by , 16 years ago
follow-up: 3 comment:2 by , 13 years ago
CPU: | → Unspecified |
---|---|
Keywords: | copy rename overwrite added |
Milestone: | 6.4.0 → 7.0.0 |
Platform: | → All |
Version: | unspecified → svn-trunk |
Replying to glynn:
Replying to hcho:
AFAICT, this is a limitation of the parser. The syntax of the various options is <old>,<new> but the parser doesn't allow multiple ->gisprompt settings.
BTW, neither the terminal interactive mode nor the GUI understand the significance of the key_desc option.
I doubt that this can be changed given the current parser interface and the way that g.copy/g.rename use it. Essentially, trying to use a single option for multiple purposes (e.g. both input and output) tends to fail for alternate modes (--help, --ui, etc).
The only way to make this work with the current parser interface would be to have separate source and destination options for each type, with the source labelled "old" and the destination labelled "new".
It would be nice to maintain a global list of cases which the parser doesn't handle well (or at all), for reference when we get around to designing a new type system for the parser.
Is it possible to fix it for the GRASS 7 version?
comment:3 by , 13 years ago
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to hcho:
AFAICT, this is a limitation of the parser. The syntax of the various options is <old>,<new> but the parser doesn't allow multiple ->gisprompt settings.
BTW, neither the terminal interactive mode nor the GUI understand the significance of the key_desc option.
I doubt that this can be changed given the current parser interface and the way that g.copy/g.rename use it. Essentially, trying to use a single option for multiple purposes (e.g. both input and output) tends to fail for alternate modes (--help, --ui, etc).
The only way to make this work with the current parser interface would be to have separate source and destination options for each type, with the source labelled "old" and the destination labelled "new".
It would be nice to maintain a global list of cases which the parser doesn't handle well (or at all), for reference when we get around to designing a new type system for the parser.