Use argparse for command line parsing

Registered by Caleb Groom on 2014-01-30

oslo.config includes the ability to parse command line options [1]. Originally
I thought that Satori should leverage this library for command line parsing.
However, after looking at many of the other command line tools, it is not
really being used. Some more digging turned up
https://review.openstack.org/#/c/57265/ where python-marconiclient replaced
oslo.config.

There appears to be a pretty solid agreement around argparse:
 nova - argparse
 swift - optparse
 glance - argparse
 keystone - argparse
 cinder - argparse
 ceilometer - argparse
 heat - argparse
 trove - argparse
 savanna - argparse
 barbican - argparse

 For this blueprint we should implement argparse and make arguments for
 username, tenantid, password, apikey, region. If not supplied on the command
 line, fall back to the `OS_` environment variables.

[1] https://wiki.openstack.org/wiki/Oslo/Config

Blueprint information

Status:
Complete
Approver:
Ziad Sawalha
Priority:
Medium
Drafter:
Caleb Groom
Direction:
Approved
Assignee:
Caleb Groom
Definition:
Approved
Series goal:
Accepted for poc
Implementation:
Implemented
Milestone target:
milestone icon poc
Started by
Caleb Groom on 2014-02-18
Completed by
Ziad Sawalha on 2014-02-18

Related branches

Sprints

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.