Merge ~guoqiao/juju-lint:argparse into juju-lint:master
Proposed by
Joe Guo
Status: | Rejected |
---|---|
Rejected by: | James Hebden |
Proposed branch: | ~guoqiao/juju-lint:argparse |
Merge into: | juju-lint:master |
Diff against target: |
77 lines (+22/-23) 1 file modified
jujulint.py (+22/-23) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Hebden (community) | Disapprove | ||
Tom Haddon | Abstain | ||
Diko Parvanov | Approve | ||
Jeremy Lounder | Pending | ||
Review via email: mp+377981@code.launchpad.net |
Commit message
jujulint.py: change optparse to argparse and improve
- optparse is deprecated by argparse, replace
- original usage info doesn't include positional args, remove and use argparse auto-generated one
- be explicit that input files should be juju status file other than bundle file
- be explicit that input files can be yaml or json(since json is subset of yaml and PyYAML can load json)
- use FileType for input files so argprarse will ensure files exist and open them
- show default value automatically in help
To post a comment you must log in.
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.