zenlotus / argparse

Automatically exported from code.google.com/p/argparse
Other
0 stars 0 forks source link

%(prog)s in version string is not being replaced #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

>>> import argparse
>>> parser = argparse.ArgumentParser(prog='PROG', version='%(prog)s 3.5')
>>> parser.parse_args(['-v'])
%(prog)s 3.5

What is the expected output? What do you see instead?

I expect to see "PROG 3.5", and what I see is "%(prog)s 3.5" (without the 
quotes).

What version of the product are you using? On what operating system?

Using version 1.0.1 on Active Python 2.6.2.2 on Windows Vista.  Problem 
also seems to happen using Jython 2.5.1 on Windows Vista.

Please provide any additional information below.

Original issue reported on code.google.com by jdclar...@gmail.com on 29 Oct 2009 at 9:22

GoogleCodeExporter commented 9 years ago
Yeah, I caught this bug in r68. Could you confirm its gone in trunk?

Original comment by steven.b...@gmail.com on 29 Oct 2009 at 11:12

GoogleCodeExporter commented 9 years ago
It does appear that this is no longer a problem in the trunk version.  Are 
there plans 
to update the installation packages with the latest trunk version?

Original comment by jdclar...@gmail.com on 30 Oct 2009 at 1:19

GoogleCodeExporter commented 9 years ago
I need to actually make a release with the trunk version, and then I'll upload 
new
packages. I'm not sure how soon I'll be making a release though. I'll try to do 
one
in the next month or two.

Original comment by steven.b...@gmail.com on 30 Oct 2009 at 2:28