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

Proper GNU short option parsing #2

Open
5 tasks
Sirraide opened this issue Jun 12, 2023 · 0 comments
Open
5 tasks

Proper GNU short option parsing #2

Sirraide opened this issue Jun 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Sirraide
Copy link
Owner

Sirraide commented Jun 12, 2023

We already sort of support short options, but the way they work is pretty limited atm. Finishing implementing short options entails:

  • Parsing short option clusters (e.g. -la in ls -la).
  • Parsing short option clusters that contain exactly one option that accepts arguments (e.g. -xvf in tar -xvf .... This option must come last (e.g. tar -fvx is not valid), and as a consequence, it need not be separated from its argument by whitespace.
  • Should probably also add an option that lets the user specify whether -- should stop parsing.
  • Actually documenting all of this.
  • multiple<short_option<...>> does not seem to work at the moment.
@Sirraide Sirraide added the feature request Propose or request a new feature label Jun 12, 2023
@Sirraide Sirraide self-assigned this Jun 12, 2023
@Sirraide Sirraide added enhancement New feature or request and removed feature request Propose or request a new feature labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant