created application does not suport standard command line options
Bug #418355 reported by
John C Barstow
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
Fix Released
|
Medium
|
Unassigned |
Bug Description
quickly 0.1
The created package should support --help and --version, like standard Ubuntu applications.
I normally use the following code in the __main__ of new projects, which seems to be a best practice:
import logging, optparse
parser = optparse.
parser.
(options, args) = parser.parse_args()
#configure the logging framework
#in this instance, set the logging level to show debug messages
if options.verbose:
Related branches
Changed in quickly: | |
milestone: | none → 0.2.1 |
Changed in quickly: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is a good idea .. should add this