comparison cmd2.py @ 331:6306edc46a6e

more docs
author cat@eee
date Fri, 12 Feb 2010 21:41:17 -0500
parents 3aca8af5971f
children 49bea7cab179
comparison
equal deleted inserted replaced
330:3aca8af5971f 331:6306edc46a6e
391 timing = False # Prints elapsed time for each command 391 timing = False # Prints elapsed time for each command
392 # make sure your terminators are not in legalChars! 392 # make sure your terminators are not in legalChars!
393 legalChars = '!#$%.:?@_' + pyparsing.alphanums + pyparsing.alphas8bit 393 legalChars = '!#$%.:?@_' + pyparsing.alphanums + pyparsing.alphas8bit
394 shortcuts = {'?': 'help', '!': 'shell', '@': 'load', '@@': '_relative_load'} 394 shortcuts = {'?': 'help', '!': 'shell', '@': 'load', '@@': '_relative_load'}
395 excludeFromHistory = '''run r list l history hi ed edit li eof'''.split() 395 excludeFromHistory = '''run r list l history hi ed edit li eof'''.split()
396 default_to_shell = True 396 default_to_shell = False
397 noSpecialParse = 'set ed edit exit'.split() 397 noSpecialParse = 'set ed edit exit'.split()
398 defaultExtension = 'txt' # For ``save``, ``load``, etc. 398 defaultExtension = 'txt' # For ``save``, ``load``, etc.
399 default_file_name = 'command.txt' # For ``save``, ``load``, etc. 399 default_file_name = 'command.txt' # For ``save``, ``load``, etc.
400 abbrev = True # Abbreviated commands recognized 400 abbrev = True # Abbreviated commands recognized
401 current_script_dir = None 401 current_script_dir = None
405 debug = False 405 debug = False
406 locals_in_py = False 406 locals_in_py = False
407 settable = stubbornDict(''' 407 settable = stubbornDict('''
408 prompt 408 prompt
409 colors Colorized output (*nix only) 409 colors Colorized output (*nix only)
410 continuation_prompt 410 continuation_prompt On 2nd+ line of input
411 debug 411 debug Show full error stack on error
412 default_file_name for `save`, `load`, etc. 412 default_file_name for ``save``, ``load``, etc.
413 editor 413 editor Program used by ``edit``
414 case_insensitive upper- and lower-case both OK 414 case_insensitive upper- and lower-case both OK
415 feedback_to_output include nonessentials in `|`, `>` results 415 feedback_to_output include nonessentials in `|`, `>` results
416 quiet 416 quiet Don't print nonessential feedback
417 echo Echo command issued into output 417 echo Echo command issued into output
418 timing Report execution times 418 timing Report execution times
419 abbrev Accept abbreviated commands 419 abbrev Accept abbreviated commands
420 ''') 420 ''')
421 421