-
Couldn't load subscription status.
- Fork 962
Closed
Labels
fun!:):)good first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributors
Description
In #2694 it seems that our handling of the env::args() is problematic in some environments like windows. The first item is skipped which is usually the executable name, but not always:
The first element is traditionally the path of the executable, but it can be set to arbitrary text, and may not even exist. This means this property should not be relied upon for security purposes.
Since this logic is used in the binaries shipped with rustfmt, it could be better to use another library like clap where that is not needed (I think).
Metadata
Metadata
Assignees
Labels
fun!:):)good first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributors