ignore extra macos parameter #1608
Labels
A-parsing
Area: Parser's logic and needs it changed somehow.
C-enhancement
Category: Raise on the bar on expectations
S-waiting-on-decision
Status: Waiting on a go/no-go before implementing
When you start an app on macos it will sometimes pass a process serial number. This blows up apps that use clap.
The place where it is getting passed for me is from the "App downloaded from the internet" dialog box. When you click open it will try to open the rust app but fail and do nothing. If you ignored a parameter that looks like this
-psn_0_5539144
on macos then this would be fixed for all apps using clap.Rust Version
rustc 1.39.0
Affected Version of clap
whatever the latest is (v2.31.2)
Expected Behavior Summary
App doesn't fail when running from the "App downloaded from the internet" dialog box.
Actual Behavior Summary
"error: Found argument '-p' which wasn't expected, or isn't valid in this context"
Steps to Reproduce the issue
Launch a rust application on macos from the "App downloaded from the internet" warning dialog box.
The text was updated successfully, but these errors were encountered: