Mercurial > python-cmd2
comparison README.txt @ 17:f81b5670a713
more readme connection
author | catherine@localhost |
---|---|
date | Thu, 15 May 2008 13:41:54 -0400 |
parents | 0a316420636e |
children | b7489d3f838e |
comparison
equal
deleted
inserted
replaced
16:0a316420636e | 17:f81b5670a713 |
---|---|
45 | 45 |
46 - Parsing commands with `optparse` options (flags) | 46 - Parsing commands with `optparse` options (flags) |
47 | 47 |
48 :: | 48 :: |
49 | 49 |
50 @options([make_option('-m', '--myoption', action="store_true", help="atinLay")]) | 50 @options([make_option('-m', '--myoption', action="store_true", help="all about my option")]) |
51 def myfunc(self, arg): | 51 def myfunc(self, arg): |
52 ... | 52 ... |
53 | 53 |
54 See Python standard library's `optparse` documentation: http://docs.python.org/lib/optparse-defining-options.html | 54 See Python standard library's `optparse` documentation: http://docs.python.org/lib/optparse-defining-options.html |
55 | 55 |