test_opts: fix usage string
authorAlexander Solovyov <piranha@piranha.org.ua>
Sat, 18 Jul 2009 00:01:47 +0300
changeset 43 fd3c1f0abab4
parent 42 c6f53f95db1c
child 44 bb7358d6b48f
test_opts: fix usage string
test_opts.py
--- a/test_opts.py	Mon Jul 13 19:30:05 2009 +0300
+++ b/test_opts.py	Sat Jul 18 00:01:47 2009 +0300
@@ -9,7 +9,7 @@
         ('d', 'daemonize', False, 'daemonize process'),
         ('', 'pid-file', '', 'name of file to write process ID to')]
 
-@command(opts, usage='%prog [-l HOST] DIR')
+@command(opts, usage='[-l HOST] DIR')
 def main(dirname, **opts):
     '''This is some command
 
@@ -17,7 +17,7 @@
     '''
     print opts
 
-@command(usage='%prog [-l HOST] DIR')
+@command(usage='[-l HOST] DIR')
 def another(dirname,
             listen=('l', 'localhost', 'ip to listen on'),
             port=('p', 8000, 'port to listen on'),