Mercurial > python-cmd2
comparison cmd2.py @ 14:a242603905d9
ready to release 0.3.0
author | catherine@localhost |
---|---|
date | Thu, 15 May 2008 13:18:40 -0400 |
parents | c6e8b645c0ab |
children | 0eb8d4e18472 |
comparison
equal
deleted
inserted
replaced
13:c6e8b645c0ab | 14:a242603905d9 |
---|---|
10 Special-character shortcut commands (beyond cmd's "@" and "!") | 10 Special-character shortcut commands (beyond cmd's "@" and "!") |
11 Settable environment parameters | 11 Settable environment parameters |
12 Parsing commands with `optparse` options (flags) | 12 Parsing commands with `optparse` options (flags) |
13 Redirection to file with >, >>; input from file with < | 13 Redirection to file with >, >>; input from file with < |
14 | 14 |
15 - Catherine Devlin, Jan 03 2008 - catherinedevlin.blogspot.com | |
16 | |
15 CHANGES: | 17 CHANGES: |
16 As of 0.3.0, options should be specified as optparse options. See README.txt. | 18 As of 0.3.0, options should be specified as `optparse` options. See README.txt. |
17 flagReader.py options are still supported for backward compatibility | 19 flagReader.py options are still supported for backward compatibility |
18 """ | |
19 | |
20 """ | |
21 todo: | |
22 edited commands end with "EOF". Hmm. | |
23 example of flag usage | |
24 | |
25 - Catherine Devlin, Jan 03 2008 - catherinedevlin.blogspot.com | |
26 """ | 20 """ |
27 import cmd, re, os, sys, optparse | 21 import cmd, re, os, sys, optparse |
28 from optparse import make_option | 22 from optparse import make_option |
29 | 23 |
30 class OptionParser(optparse.OptionParser): | 24 class OptionParser(optparse.OptionParser): |