Skip to content

Commit 4fa0bea

Browse files
committed
Swap the short options for verbose and version:
- Set verbose to use `-v` (lowercase) instead of `-V` - Set version to use `-V` (uppercase) instead of `-v` When the verbose option is shortened to a lowercase v, it becomes convenient to use with the report option (r) or path option (p), as shown below: $ pyftrace -vp path/to/example/script.py $ pyftrace -vr path/to/example/script.py
1 parent f0b7b27 commit 4fa0bea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyftrace/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def main():
1717
formatter_class=argparse.RawTextHelpFormatter
1818
)
1919

20-
parser.add_argument('-v', '--version', action='version', version=f'pyftrace version {__version__}', help="Show the version of pyftrace and exit")
21-
parser.add_argument('-V', '--verbose', action='store_true', help="Enable built-in and third-party function tracing")
20+
parser.add_argument('-V', '--version', action='version', version=f'pyftrace version {__version__}', help="Show the version of pyftrace and exit")
21+
parser.add_argument('-v', '--verbose', action='store_true', help="Enable built-in and third-party function tracing")
2222
parser.add_argument('-p', '--path', action='store_true', help="Show file paths in tracing output")
2323
parser.add_argument('-r', '--report', action='store_true', help="Generate a report of function execution times")
2424

0 commit comments

Comments
 (0)