Use argparse for command line parsing
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:/
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.
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:
-
poc
- Started by
- Caleb Groom
- Completed by
- Ziad Sawalha