Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

dcm-* cli tools don't differentiate between optional and required arguments #235

Closed
jimsander opened this issue Jul 16, 2015 · 2 comments
Closed

Comments

@jimsander
Copy link

All parameters show as optional, rather than differentiating between optional and mandatory

i.e.

# # INCORRECT ##
usage: dcm-create-server [-h] [--productid PRODUCTID]
                         [--machineimage MACHINEIMAGE]
                         [--datacenter DATACENTER] [--description DESCRIPTION]
                         [--name NAME] [--budgetid BUDGETID]
                         [--keypair KEYPAIR] [--vlan VLAN]
                         [--userdata USERDATA]

## CORRECT ##
usage: dcm-create-server [-h] --productid <PRODUCTID>
                         --machineimage <MACHINEIMAGE>
                         --datacenter <DATACENTER>
                         --name <NAME> --budgetid <BUDGETID>
                         [--keypair KEYPAIR] 
                         [--vlan VLAN]
                         [--description DESCRIPTION]                                                                                                           
                         [--userdata USERDATA]
@igable igable changed the title Clean up Usage Syntax dcm-* cli tools don't deferentiate between optional and required areguments Jul 16, 2015
@igable igable changed the title dcm-* cli tools don't deferentiate between optional and required areguments dcm-* cli tools don't deferentiate between optional and required arguments Jul 16, 2015
@igable
Copy link
Contributor

igable commented Jul 16, 2015

I will look over the dcm-* tool and add the required=True flag where it's needed in the argparse config. Probably this will be targeted for 0.11.2 or 0.11.3

@igable
Copy link
Contributor

igable commented Jul 22, 2015

Issue #220 is also this problem.

@igable igable closed this as completed in 27a97fc Sep 8, 2015
@igable igable changed the title dcm-* cli tools don't deferentiate between optional and required arguments dcm-* cli tools don't differentiate between optional and required arguments Sep 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants