Skip to content

Commit c843903

Browse files
committed
tweak option descriptions more
1 parent f101718 commit c843903

5 files changed

Lines changed: 41 additions & 37 deletions

File tree

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ An Emacs interface is available via realgud_.
3030
entry-exit
3131
syntax
3232
commands
33-
manpages
3433

3534
Indices and tables
3635
==================

docs/manpages.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/manpages/trepan3k.rst

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ Trepan3k Options
3434
Show file path basenames, e.g. for regression tests.
3535

3636
:\--client:
37-
Connect to an existing debugger process started with the --server option. See also options -H and -P.
37+
Connect to an existing debugger process started with the --server option. See also options ``-H`` and ``-P``.
3838

39-
:-x *FILE*, \--command\= *FILE*:
40-
Execute commands from *FILE*.
39+
:-x *FILE*, \--command\= *debugger-command-path*:
40+
Execute commands from *debugger-command-path*.
4141

42-
:\--cd= *DIR*:
43-
Change current directory to *DIR*.
42+
:\--cd= *directory-path*:
43+
Change current directory to *directory-path*.
4444

4545
:\--confirm:
4646
Confirm potentially dangerous operations.
@@ -54,11 +54,11 @@ Trepan3k Options
5454
:\--different:
5555
Consecutive debugger stops should have different positions.
5656

57-
:\--edit-mode=EDIT_MODE:
57+
:\--edit-mode={emacs|vi}:
5858
Set debugger-input edit mode, either "emacs" or "vi".
5959

60-
:-e *EXECUTE-CMDS*, \--exec= *EXECUTE-CMDS*:
61-
list of debugger commands to execute. Separate the commands with `;;`
60+
:\-e *debugger-commands-string*, \--exec\= *debugger-commands-string*:
61+
list of debugger commands to execute. Separate the commands with `;;`.
6262

6363
:\--highlight={light|dark|plain}:
6464
Use syntax and terminal highlight output. "plain" is no highlight.
@@ -72,23 +72,32 @@ Trepan3k Options
7272
:-n, \--nx:
7373
Don't execute commands found in any initialization files.
7474

75-
:-o *FILE*, \--output= *FILE*:
76-
Write debugger's output (stdout) to *FILE*.
75+
:-o *path*, \--output= *path*:
76+
Write debugger's output (stdout) to *path*.
7777

78-
:-p *PORT*,\ --port= *PORT*:
79-
Use TCP port number *NUMBER* for out-of-process connections.
78+
:-p *port-number*,\ --port= *port-number*:
79+
Use TCP/IP port number *port-number* for out-of-process connections.
8080

8181
:--server:
82-
Out-of-process server connection mode.
82+
Out-of-process or "headless" server-connection mode.
8383

8484
:--sigcheck:
8585
Set to watch for signal handler changes.
8686

87-
:-t *TARGET*, \--target= *TARGET*:
88-
Specify a target to connect to. Arguments should be of form, *protocol*:*address*
87+
:-t *target*, \--target= *target*:
88+
Specify a target to connect to. Arguments should be of form, *protocol*:*address*.
8989

9090
:\--from_ipython:
91-
Called from inside ipython
91+
Called from inside ipython.
92+
93+
:\--annotate=`` *annotate-number*:
94+
Use annotations to work inside GNU Emacs.
95+
96+
:--prompt-toolkit:
97+
Try using the Python prompt_toolkit module.
98+
99+
:--no-prompt-toolkit:
100+
Do not use prompt_toolkit.
92101

93102
:\--:
94103
Use this to separate debugger options from any options your Python script has.

docs/options.rst

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ will be run under the debugger.
6363
Consecutive debugger stops should have different positions.
6464

6565
``--edit-mode=`` { ``emacs`` | ``vi`` }
66-
Set debugger-input edit mode, either "emacs" or "vi", used by GNU readline, lineedit, or toolkit-prompt.
66+
Set debugger-input edit mode, either "emacs" or "vi", used by GNU
67+
readline, lineedit, or toolkit-prompt. The default is
68+
"emacs". Inside the debugger, you can toggle the edit mode using ESC
69+
CTRL-j (same as you would in ``gdb``).
6770

68-
``-e`` *debugger-command-string*, ``--exec=`` *debugger-command-string*
69-
List of debugger commands to execute. Separate the commands with ``;;``
71+
``-e`` *debugger-commands-string*, ``--exec=`` *debugger-commands-string*
72+
List of debugger commands to execute. Separate the commands with ``;;``.
7073

7174
``-H`` *IP-or-hostname*, ``--host=`` *IP-or-hostname*
7275
Connect to *IP* or hostname. Only valid if ``--client`` option is given.
@@ -97,21 +100,21 @@ will be run under the debugger.
97100
Write debugger's output (stdout) to FILE
98101

99102
``-P`` *port-number*, ``--port=`` *port-number*
100-
Use TCP port number *port-number* for out-of-process connections.
103+
Use TCP/IP port number *port-number* for out-of-process connections.
101104

102105
``--server``
103-
Out-of-process server connection mode
106+
Out-of-process or "headless" server-connection mode.
104107

105108
``--style=`` *pygments-style*
106109
Set output to pygments style; "none" uses 8-color rather than 256-color terminal
107110

108111
``--sigcheck``
109-
Set to watch for signal handler changes
112+
Set to watch for signal handler changes.
110113

111114
``-t`` *target*, ``--target=`` *target*
112-
Specify a target to connect to. Arguments should be of form, 'protocol address'.
115+
Specify a target to connect to. Arguments should be of form, *protocol*:*address*.
113116

114-
`--from_ipython`` Called from inside ipython
117+
`--from_ipython`` Called from inside ipython.
115118

116119
``--annotate=`` *annotate-number*
117120
Use annotations to work inside GNU Emacs.
@@ -120,10 +123,11 @@ Set output to pygments style; "none" uses 8-color rather than 256-color terminal
120123
Try using the Python prompt_toolkit module.
121124

122125
``--no-prompt-toolkit``
123-
Do not use prompt_toolkit
126+
Do not use prompt_toolkit.
124127

125128
``--``
126-
Use this to separate debugger options from any options your Python script has.
129+
Use this to separate debugger options from any options your
130+
Python script to be debugged has.
127131

128132

129133

trepan/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def process_options(pkg_version: str, sys_argv: str, option_list=None):
270270
"--server",
271271
dest="server",
272272
action="store_true",
273-
help="Out-of-process server connection mode.",
273+
help='Out-of-process or "headless" server-connection mode.',
274274
)
275275

276276
optparser.add_option(
@@ -340,7 +340,7 @@ def process_options(pkg_version: str, sys_argv: str, option_list=None):
340340
dest="use_prompt_toolkit",
341341
action="store_false",
342342
default=True,
343-
help="Do not use prompt_toolkit",
343+
help="Do not use prompt_toolkit.",
344344
)
345345

346346
# Set up to stop on the first non-option because that's the name

0 commit comments

Comments
 (0)