File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 7
7
* Enhancements
8
8
* Added ` silent_startup_script ` option to ` cmd2.Cmd.__init__() ` . If ` True ` , then the startup script's
9
9
output will be suppressed. Anything written to stderr will still display.
10
+ * cmd2 now uses pyreadline3 when running Python 3.8 or greater on Windows
10
11
11
12
## 1.4.0 (November 11, 2020)
12
13
* Bug Fixes
Original file line number Diff line number Diff line change @@ -64,3 +64,12 @@ like so::
64
64
This text file should contain a :ref: `Command Script
65
65
<features/scripting:Command Scripts>`. See the AliasStartup _ example for a
66
66
demonstration.
67
+
68
+ You can silence a startup script's output by setting ``silent_startup_script ``
69
+ to True::
70
+
71
+ cmd2.Cmd.__init__(self, startup_script='.cmd2rc', silent_startup_script=True)
72
+
73
+ Anything written to stderr will still print. Additionally, a startup script
74
+ cannot be silenced if ``allow_redirection `` is False since silencing works
75
+ by redirecting a script's output to ``os.devnull ``.
You can’t perform that action at this time.
0 commit comments