@@ -355,7 +355,12 @@ def __init__(self, completekey: str = 'tab', stdin=None, stdout=None, *,
355
355
:param transcript_files: allow running transcript tests when allow_cli_args is False
356
356
:param allow_redirection: should output redirection and pipes be allowed
357
357
:param multiline_commands: list of commands allowed to accept multi-line input
358
- :param shortcuts: dictionary containing shortcuts for commands
358
+ :param terminators: list of characters that terminate a command. These are mainly intended for terminating
359
+ multiline commands, but will also terminate single-line commands. If not supplied, then
360
+ defaults to semicolon. If your app only contains single-line commands and you want
361
+ terminators to be treated as literals by the parser, then set this to an empty list.
362
+ :param shortcuts: dictionary containing shortcuts for commands. If not supplied, then defaults to
363
+ constants.DEFAULT_SHORTCUTS.
359
364
"""
360
365
# If use_ipython is False, make sure the do_ipy() method doesn't exit
361
366
if not use_ipython :
@@ -2451,8 +2456,8 @@ def _alias_list(self, args: argparse.Namespace) -> None:
2451
2456
alias_create_description = "Create or overwrite an alias"
2452
2457
2453
2458
alias_create_epilog = ("Notes:\n "
2454
- " If you want to use redirection, pipes, or terminators like ';' in the value\n "
2455
- " of the alias, then quote them.\n "
2459
+ " If you want to use redirection, pipes, or terminators in the value of the \n "
2460
+ " alias, then quote them.\n "
2456
2461
"\n "
2457
2462
" Since aliases are resolved during parsing, tab completion will function as\n "
2458
2463
" it would for the actual command the alias resolves to.\n "
@@ -2657,8 +2662,8 @@ def _macro_list(self, args: argparse.Namespace) -> None:
2657
2662
"\n "
2658
2663
" macro create backup !cp \" {1}\" \" {1}.orig\" \n "
2659
2664
"\n "
2660
- " If you want to use redirection, pipes, or terminators like ';' in the value\n "
2661
- " of the macro, then quote them.\n "
2665
+ " If you want to use redirection, pipes, or terminators in the value of the \n "
2666
+ " macro, then quote them.\n "
2662
2667
"\n "
2663
2668
" macro create show_results print_results -type {1} \" |\" less\n "
2664
2669
"\n "
0 commit comments