summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-05-25 11:25:32 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-05-25 11:25:32 -0400
commit039ef2972e70c0ec7e2db1e47eac2b84815aa1b3 (patch)
tree95a79a3958570817ce13dae0dc9704d82c9844a7 /docs
parent21cdab4babfbd0363052dcaea06455c80911024b (diff)
downloadcmd2-git-039ef2972e70c0ec7e2db1e47eac2b84815aa1b3.tar.gz
Updated documentation. Added support for calling cmd2.Cmd.run_editor() with no argument.
Diffstat (limited to 'docs')
-rw-r--r--docs/features/redirection.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/features/redirection.rst b/docs/features/redirection.rst
index c7d0ea98..ef87d26c 100644
--- a/docs/features/redirection.rst
+++ b/docs/features/redirection.rst
@@ -64,8 +64,7 @@ Disabling Redirection
from cmd2 import Cmd
class App(Cmd):
def __init__(self):
- super().__init__()
- self.allow_redirection = False
+ super().__init__(allow_redirection=False)
cmd2's parser will still treat the ``>``, ``>>``, and `|` symbols as output
redirection and pipe symbols and will strip arguments after them from the