comparison cmd2/cmd2.py @ 112:e3b8eaadea56

going to collapse down out of overdone package structure
author catherine@Elli.myhome.westell.com
date Sat, 25 Oct 2008 19:28:51 -0400
parents 78c4db4c2045
children
comparison
equal deleted inserted replaced
111:c1e5df33721f 112:e3b8eaadea56
9 Case-insensitive commands 9 Case-insensitive commands
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 Easy transcript-based testing of applications (see example/example.py)
14 15
15 Note that redirection with > and | will only work if `self.stdout.write()` 16 Note that redirection with > and | will only work if `self.stdout.write()`
16 is used in place of `print`. The standard library's `cmd` module is 17 is used in place of `print`. The standard library's `cmd` module is
17 written to use `self.stdout.write()`, 18 written to use `self.stdout.write()`,
18 19