From 7c17d8bbf006e17f0104b6d9d35fc67ca4f235fd Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 3 Jul 2017 19:56:25 -0400 Subject: Fixed a few bugs and examples Bug fixes: - case_insensitive is no longer a runtime-settable parameter, but it was still listed as such - Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever - Added additional command abbreviations to the "exclude from history" list - Fixed argparse_example.py and pirate.py examples Other changes: - Organized all attributes used to configure the ParserManager into a single location - Set the default value of "abbrev" to False (which controls whether or not abbreviated commands are allowed) - With good tab-completion of command names, using abbreviated commands isn't a particularly useful feature - And it can create problems --- tests/test_transcript.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_transcript.py') diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 4ffcd162..bc116e9a 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -21,6 +21,7 @@ from conftest import run_cmd, StdOut, normalize class CmdLineApp(Cmd): def __init__(self, *args, **kwargs): + self.abbrev = True self.multilineCommands = ['orate'] self.maxrepeats = 3 self.redirector = '->' -- cgit v1.2.1