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

Allow bundling options and arguments #274

Closed
mrnoname1000 opened this issue Feb 27, 2024 · 0 comments · Fixed by #292
Closed

Allow bundling options and arguments #274

mrnoname1000 opened this issue Feb 27, 2024 · 0 comments · Fixed by #292
Labels
enhancement New feature or request

Comments

@mrnoname1000
Copy link

With the current option parser, it's impossible to bundle multiple options (i.e. -vh although this is pointless) and options with their arguments (i.e. -f-, -gpath). Bundling saves me time because I can omit extra characters from throwaway one-liners.

Using getopt(3) makes this possible, but that may have portability issues.

@bagder bagder added the enhancement New feature or request label Apr 18, 2024
bagder added a commit that referenced this issue May 6, 2024
With this change, we can write "trurl curl.se -g{host}", without having
a space after "-g". This goes for all short options.

-v and -h are still treated specially because they cannot be combined
with other options

Proposed-by: @mrnoname1000
Fixes #274
bagder added a commit that referenced this issue May 6, 2024
With this change, we can write "trurl curl.se -g{host}", without having
a space after "-g". This goes for all short options.

-v and -h are still treated specially because they cannot be combined
with other options

Proposed-by: @mrnoname1000
Fixes #274
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

Successfully merging a pull request may close this issue.

2 participants