id summary reporter owner description type status priority milestone component resolution keywords cc fix_version see_also 719 Passing invalid arguments to printing-config wrappers causes traceback jdreed "(See sipb,lprm,* from 16:38 on Tuesday for context) If I pass an invalid argument (say, ""-u"", which CUPS and LPRng have never supported), I get a traceback as shown below. I should get a usage argument instead. I suspect this is probably as simple as putting parse_args in a try block, but testing is required. {{{ jdreed@INFINITE-LOOP:~$ lprm -Pmark-the-great -u foo Traceback (most recent call last): File ""/usr/bin/lprm"", line 9, in load_entry_point('debathena.printing==1.23.2-ubuntu10.04', 'console_scripts', 'lprm.debathena')() File ""/usr/lib/pymodules/python2.6/debathena/printing/lprm.py"", line 29, in main sys.exit(_main(sys.argv)) # pragma: nocover File ""/usr/lib/pymodules/python2.6/debathena/printing/lprm.py"", line 25, in _main return simple.simple('lprm', opts, queue_opt, args) File ""/usr/lib/pymodules/python2.6/debathena/printing/simple.py"", line 22, in simple argstyle, options, arguments = common.parse_args(args, optinfo) TypeError: 'NoneType' object is not iterable }}}" defect closed normal Natty Beta -- fixed