-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OptionParser to handle sub-commands with hyphen (#9465)
It was matching regexs anywhere on the string, but we want the regexs to match the full string. In particular this behavior made that a flag `sub-command` was interpeted as `su`, because it matches the `-(.)\S+` regex. Co-authored-by: Alexandre Morignot <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 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