Skip to content

Commit dee21af

Browse files
committed
Fix argument parsing
1 parent 1f43750 commit dee21af

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/bin/pargs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ fn parse_args() -> Args {
155155
}
156156
}
157157

158+
if args.line && (args.env || args.auxv) {
159+
eprintln!("pargs: -l is incompatible with -e and -x");
160+
exit(2);
161+
}
162+
158163
if args.pid.is_empty() {
159164
eprintln!("pargs: at least one PID required");
160165
exit(2);

0 commit comments

Comments
 (0)