Feature #4596
Wrap argumentparser to allow required yet non-positional arguments
Status: | Resolved | Start date: | 11/14/2013 | |
---|---|---|---|---|
Priority: | Medium | Due date: | 11/18/2013 | |
Assignee: | Stavros Sachtouris | % Done: | 100% |
|
Category: | kamaki | Spent time: | 17.00 hours | |
Target version: | v0.12 | Estimated time: | 10.00 hours |
Description
python argument parser thinks of non-positional arguments as optional.
In order to create required non-positional arguments, kamaki has to
take advance of the already implemented argument parser wrapping. It
should be modified so that it will offer what kamaki needs:
(a) "at least one of these" (OR) non-positional required arguments (e.g. in "modify" commands)
(b) "all of these" (AND) non-positional required arguments (e.g. in "create" commands)
This affects mostly the help messages and the error handling mechanisms of kamaki
Related issues
Associated revisions
Syntax check required arguments (incomplete)
Refs: #4596
Move all argument related syntax help in Arguments
Refs: #4596
History
#1 Updated by Stavros Sachtouris almost 10 years ago
- % Done changed from 0 to 70
#2 Updated by Stavros Sachtouris almost 10 years ago
- Status changed from Assigned to Resolved
- % Done changed from 70 to 100