Skip to content

Commit

Permalink
Minor fix in the 'saveframe' doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin Saharan committed Nov 21, 2024
1 parent 1fff0de commit 0435043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/saveframe
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Example Usage:
=> To save a specific frame like `File "dir/mod1.py", line 9, in func2`, use:
$ saveframe --filename=/path/to/file --frames=mod1.py:9:func2 <script_or_command_to_run>
=> To save the last 3 frames from the bottom, use:
=> To save the first 3 frames from the bottom, use:
$ saveframe --frames=3 <script_or_command_to_run>
=> To save all the frames from 'mod1.py' and 'mod2.py' files, use:
Expand Down Expand Up @@ -164,7 +164,7 @@ def getargs():
"5. Number of Frames from Bottom:\n"
" --frames=num\n"
" Example: --frames=5\n"
" Includes the last 'num' frames from the bottom of the stack trace."
" Includes the first 'num' frames from the bottom of the stack trace."
)
parser.add_argument(
"--variables", default=None,
Expand Down
2 changes: 1 addition & 1 deletion lib/python/pyflyby/_saveframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ def saveframe(filename=None, frames=None, variables=None, exclude_variables=None
5. Number of Frames from Bottom:
frames=num
Example: frames=5
Includes the last 'num' frames from the bottom of the stack trace.
Includes the first 'num' frames from the bottom of the stack trace.
Default behavior if this parameter is not passed:
- When user is in a debugger (ipdb/pdb): Save the frame the user is
Expand Down

0 comments on commit 0435043

Please sign in to comment.