slightly better usage description
authorAlexander Solovyov <piranha@piranha.org.ua>
Wed, 03 Jun 2009 22:42:11 +0300
changeset 7 eda828775a98
parent 6 f535f416945a
child 8 4e61d2809507
slightly better usage description
fancyopts.py
--- a/fancyopts.py	Wed Jun 03 22:27:37 2009 +0300
+++ b/fancyopts.py	Wed Jun 03 22:42:11 2009 +0300
@@ -17,7 +17,7 @@
 ...         ('', 'pid-file', '',
 ...          'name of file to write process ID to')]
 >>> from fancyopts import fancyopts
->>> fancyopts(serve, 'serve [-l HOST] DIR', opts, ['--pid-file', 'test', 'dir'])
+>>> fancyopts(serve, 'serve [-l HOST] DIR', opts, '--pid-f test dir'.split())
 localhost test
 
 You have supplied directory name here and path to file with process id.