comparison cmd2.py @ 193:e96877b59371

tweaked docs
author catherine@Elli.myhome.westell.com
date Tue, 17 Feb 2009 22:45:10 -0500
parents c0d4c7ba14a9
children 5bf878c5c0e8
comparison
equal deleted inserted replaced
192:c0d4c7ba14a9 193:e96877b59371
180 for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']: 180 for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']:
181 if not os.system('which %s' % (editor)): 181 if not os.system('which %s' % (editor)):
182 break 182 break
183 183
184 def do_cmdenvironment(self, args): 184 def do_cmdenvironment(self, args):
185 '''Summary report of interactive parameters.'''
185 self.stdout.write(""" 186 self.stdout.write("""
186 Commands are %(casesensitive)scase-sensitive. 187 Commands are %(casesensitive)scase-sensitive.
187 Commands may be terminated with: %(terminators)s 188 Commands may be terminated with: %(terminators)s
188 Settable parameters: %(settable)s 189 Settable parameters: %(settable)s
189 """ % 190 """ %
190 { 'casesensitive': ('not ' and self.caseInsensitive) or '', 191 { 'casesensitive': (self.caseInsensitive and 'not ') or '',
191 'terminators': str(self.terminators), 192 'terminators': str(self.terminators),
192 'settable': ' '.join(self.settable) 193 'settable': ' '.join(self.settable)
193 }) 194 })
194 195
195 def do_help(self, arg): 196 def do_help(self, arg):