Feature #4596

Wrap argumentparser to allow required yet non-positional arguments

Added by Stavros Sachtouris almost 8 years ago. Updated almost 8 years ago.

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

blocks ./kamaki - Feature #4583: Design and implement a new kamaki commands naming scheme Assigned 11/12/2013 11/18/2013

Associated revisions

Revision 56d84a4e
Added by Stavros Sachtouris almost 8 years ago

Syntax check required arguments (incomplete)

Refs: #4596

Revision 320af781
Added by Stavros Sachtouris almost 8 years ago

Move all argument related syntax help in Arguments

Refs: #4596

History

#1 Updated by Stavros Sachtouris almost 8 years ago

  • % Done changed from 0 to 70

#2 Updated by Stavros Sachtouris almost 8 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 70 to 100

Also available in: Atom PDF