(all occurences of [ * ] were removed from above output because they interfered with the forum layout)
[jcfp@asterion] /tmp/SABnzbd-0.3.1rc1
$ ./SABnzbd.py -v
SABnzbd.py-0.3.1rc1
[jcfp@asterion] /tmp/SABnzbd-0.3.1rc1
$ ./SABnzbd.py --version
Usage: SABnzbd.py [-f ]
Options marked are stored in the config file
Options:
-f --config-file Location of config file
-s --server Listen on server:port
-t --templates Template directory
-l --logging Set logging level (0= least, 2= most)
-w --weblogging Set cherrypy logging (0= off, 1= on)
-b --browser Auto browser launch (0= off, 1= on)
-d --daemon Fork daemon process
--permissions Set the chmod mode (e.g. o=rwx,g=rwx)
--force Discard web-port timeout (see Wiki!)
-h --help Print this message
-v --version Print version information
-c --clean Remove queue, cache and logs
-p --pause Start in paused mode
That last output is the --help reply (that one also gets when using any random --foobar), even though it really is being asked for --version. Looking at the source code in SABnzbd.py, I can't find anything strange in the handling of the command line argument, so I'm hesitant to file this as a bug. The following is around line 316, and looks perfectly sane to me:
I checked with another user who confirmed seeing this too. The program works perfectly fine otherwise, including other long options that I tested like --daemon. Ideas?
if o in ('-v', '--version'):
print_version()
ExitSab(0)