From 04cdcb0feb369ac4c60e10ccdc139c57e8b52e62 Mon Sep 17 00:00:00 2001 From: Zearin Date: Fri, 7 Oct 2011 10:34:23 -0400 Subject: Removed leftovers from installing with pip. Oops! I noticed there was a bunch of extra crap left over from when I installed this module onto my own system. I thought it wouldn't have modified itself at the time (just the Python module library on my system), but I was wrong. Begone, useless cruft! --- doxygen/html/example_8py_source.html | 163 ----------------------------------- 1 file changed, 163 deletions(-) delete mode 100644 doxygen/html/example_8py_source.html (limited to 'doxygen/html/example_8py_source.html') diff --git a/doxygen/html/example_8py_source.html b/doxygen/html/example_8py_source.html deleted file mode 100644 index 842e0de..0000000 --- a/doxygen/html/example_8py_source.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - -Cmd2: /Users/amrogers/Developer/Projects/cmd2/example/example.py Source File - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Cmd2 - -
- -
-
- - - - - -
-
- -
-
-
- -
-
-
-
example.py
-
-
-Go to the documentation of this file.
00001 '''A sample application for cmd2.'''
-00002 
-00003 from cmd2 import Cmd, make_option, options
-00004 import unittest, optparse, sys
-00005 
-00006 class CmdLineApp(Cmd):
-00007     multilineCommands = ['orate']
-00008     Cmd.shortcuts.update({'&': 'speak'})
-00009     maxrepeats = 3
-00010     redirector = '->'
-00011     Cmd.settable.append('maxrepeats   Max number of `--repeat`s allowed')
-00012 
-00013     @options([make_option('-p', '--piglatin', action="store_true", help="atinLay"),
-00014               make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
-00015               make_option('-r', '--repeat', type="int", help="output [n] times")
-00016              ], arg_desc = '(text to say)')
-00017     def do_speak(self, arg, opts=None):
-00018         """Repeats what you tell me to."""
-00019         arg = ''.join(arg)
-00020         if opts.piglatin:
-00021             arg = '%s%say' % (arg[1:].rstrip(), arg[0])
-00022         if opts.shout:
-00023             arg = arg.upper()
-00024         repetitions = opts.repeat or 1
-00025         for i in range(min(repetitions, self.maxrepeats)):
-00026             self.stdout.write(arg)
-00027             self.stdout.write('\n')
-00028             # self.stdout.write is better than "print", because Cmd can be
-00029             # initialized with a non-standard output destination        
-00030 
-00031     do_say = do_speak     # now "say" is a synonym for "speak"
-00032     do_orate = do_speak   # another synonym, but this one takes multi-line input
-00033 
-00034 c = CmdLineApp()
-00035 c.cmdloop()
-
-
- - - - - -- cgit v1.2.1