Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basename arguments simple format #3736

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

niyaznigmatullin
Copy link
Contributor

@niyaznigmatullin niyaznigmatullin commented Jul 21, 2022

Closes issue #2535

Basename has two different formats of arguments, and a simple format NAME [SUFFIX] doesn't support any flags, so clap parsing can't be used here, since it parses things starting with double hyphen, like --, --help and --suffix even when allow_hyphen_values specified.

  • Detected when simple format is used and parsed it manually
  • Added tests for that

@sylvestre
Copy link
Sponsor Contributor

Warning: Congrats! The gnu test tests/misc/basename is no longer failing!
nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants