Skip to content

Commit 808eae6

Browse files
committed
Changed wrapping point of some help text
1 parent 976ddc8 commit 808eae6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cmd2/cmd2.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,8 +2389,8 @@ def alias_list(self, args: argparse.Namespace) -> None:
23892389
" If you want to use redirection, pipes, or terminators like ';' in the value\n"
23902390
" of the alias, then quote them.\n"
23912391
"\n"
2392-
" Since aliases are resolved during parsing, tab completion will function as it\n"
2393-
" would for the actual command the alias resolves to.\n"
2392+
" Since aliases are resolved during parsing, tab completion will function as\n"
2393+
" it would for the actual command the alias resolves to.\n"
23942394
"\n"
23952395
"Examples:\n"
23962396
" alias create ls !ls -lF\n"
@@ -2420,8 +2420,8 @@ def alias_list(self, args: argparse.Namespace) -> None:
24202420

24212421
# alias -> list
24222422
alias_list_help = "list aliases"
2423-
alias_list_description = ("List specified aliases in a reusable form that can be saved to a startup script\n"
2424-
"to preserve aliases across sessions\n"
2423+
alias_list_description = ("List specified aliases in a reusable form that can be saved to a startup\n"
2424+
"script to preserve aliases across sessions\n"
24252425
"\n"
24262426
"Without arguments, all aliases will be listed.")
24272427

@@ -2572,17 +2572,17 @@ def macro_list(self, args: argparse.Namespace) -> None:
25722572
"\n"
25732573
"The following creates a macro called my_macro that expects two arguments:\n"
25742574
"\n"
2575-
" macro create my_macro make_dinner -meat {1} -veggie {2}\n"
2575+
" macro create my_macro make_dinner --meat {1} --veggie {2}\n"
25762576
"\n"
2577-
"When the macro is called, the provided arguments are resolved and the assembled\n"
2578-
"command is run. For example:\n"
2577+
"When the macro is called, the provided arguments are resolved and the\n"
2578+
"assembled command is run. For example:\n"
25792579
"\n"
2580-
" my_macro beef broccoli ---> make_dinner -meat beef -veggie broccoli\n"
2580+
" my_macro beef broccoli ---> make_dinner --meat beef --veggie broccoli\n"
25812581
"\n"
25822582
"Notes:\n"
25832583
" To use the literal string {1} in your command, escape it this way: {{1}}.\n"
25842584
"\n"
2585-
" Extra arguments passed when calling a macro are tacked onto resolved command.\n"
2585+
" Extra arguments passed to a macro are appended to resolved command.\n"
25862586
"\n"
25872587
" An argument number can be repeated in a macro. In the following example the\n"
25882588
" first argument will populate both {1} instances.\n"
@@ -3068,8 +3068,8 @@ def _reset_py_display() -> None:
30683068
"has limited ability to parse Python statements into tokens. In particular,\n"
30693069
"there may be problems with whitespace and quotes depending on their placement.\n"
30703070
"\n"
3071-
"If you see strange parsing behavior, it's best to just open the Python shell by\n"
3072-
"providing no arguments to py and run more complex statements there.")
3071+
"If you see strange parsing behavior, it's best to just open the Python shell\n"
3072+
"by providing no arguments to py and run more complex statements there.")
30733073

30743074
py_parser = ACArgumentParser(description=py_description)
30753075
py_parser.add_argument('command', help="command to run", nargs='?')

0 commit comments

Comments
 (0)