We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad8ad7 commit 3e325e8Copy full SHA for 3e325e8
Lib/profile/sample.py
@@ -760,10 +760,8 @@ def main():
760
761
sort_value = args.sort if args.sort is not None else 2
762
763
- if not(args.pid or args.module or args.script):
764
- parser.error(
765
- "You must specify either a process ID (-p), a module (-m), or a script to run."
766
- )
+ if args.module is not None and not args.module:
+ parser.error("the following arguments are required: module name")
767
768
if args.pid:
769
sample(
0 commit comments