-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for detecting args after double-dash
The crate provides support for detecting and ignoring double-dash ("--") argument passed from command line, but it does not provide any information about its presence or position to user. For applications that may want to pass arguments after double-dash to child process is such indication critical. Add optional field `args_end` into Matches structure storing position of first argument after double-dash (if there is any) and method to provide user access to the data. When checking for double-dash positin, it is important to make sure that there actually are some arguments after it. Otherwise the position would point to non-existent index in `free` list and would require additional unnecessary checks on user side.
- Loading branch information
1 parent
a1bc6a8
commit 1b52757
Showing
2 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters