command line option --version does not work

Bug #743382 reported by Tony Byrne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Medium
Unassigned

Bug Description

$ quickly create ubuntu-application "test project"
Congrats, your new project is setup! cd test-project/ to start hacking.
$ test-project/bin/test-project --version
test-project %ver

in helpers.parse_options() there is command
parser = optparse.OptionParser(version="%prog %ver")
but Python 2.6 Documentation suggests
parser = OptionParser(usage="%prog [-f] [-q]", version="%prog 1.0")
so it seems that helpers.parse_options() should contain something like
parser = optparse.OptionParser(version="%prog %s" % some_version_lookup_function())
but I cannot find a suitable function or data

this command was introduced in revision 281 2009-09-04 to fix bug 418355 so it might be an API change in optparse

Related branches

Michael Terry (mterry)
Changed in quickly:
assignee: nobody → Michael Terry (mterry)
status: New → In Progress
Michael Terry (mterry)
Changed in quickly:
assignee: Michael Terry (mterry) → nobody
importance: Undecided → Medium
status: In Progress → Fix Committed
Michael Terry (mterry)
Changed in quickly:
milestone: none → 11.04
Michael Terry (mterry)
Changed in quickly:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.