Bug0049
- Description
- Verbosity command line arg - short version doesn't work
If you use --log_level=100, everything works fine. If you try and do -v 100 or -v=100, you get an error. Complete launch line was:
exec /usr/bin/python2.4 $SRC_DIR/src/pyflag/FlagHTTPServer.py --plugins=$SRC_DIR /src/plugins --dbuser=root --dbpasswd=mypasswordgoeshere --flagdb=13SepFlagDB --geoipdir=/ usr/local/share/GeoIP -v 10
Backtrace is:
File "/home/user/dev/pyflag/feature13/pyflag/src/pyflag/Reports.py", line 31, in ?
import pyflag.DB as DB
File "/home/user/dev/pyflag/feature13/pyflag/src/pyflag/DB.py", line 33, in ?
import pyflag.conf
File "/home/user/dev/pyflag/feature13/pyflag/src/pyflag/conf.py", line 341, in ?
help = "Directory under which the web GUI will allow loading files")
File "/home/user/dev/pyflag/feature13/pyflag/src/pyflag/conf.py", line 299, in add_option
self.parse_options(False)
File "/home/user/dev/pyflag/feature13/pyflag/src/pyflag/conf.py", line 226, in parse_options
(opts, args) = self.optparser.parse_args()
File "/usr/lib/python2.4/optparse.py", line 1278, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1322, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1406, in _process_short_opts
if option.takes_value():
AttributeError: 'NoneType' object has no attribute 'takes_value'
- Logged
- 2007-09-20
- Logged By
- Assigned to
- Status
- Closed
Get back to the BugIndex
This is a python 2.4 v 2.5 issue.
Should be fixed
Nope, borked other stuff.
I think this one is finally closed - certainly with 2.5. With python 2.6 on the way we should simple only use python2.5 now. There are a number of useful features in 2.5 we have come to depend on.
