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

Dragon can't handle combined flags #45

Open
hi-im-buggy opened this issue Feb 26, 2022 · 1 comment
Open

Dragon can't handle combined flags #45

hi-im-buggy opened this issue Feb 26, 2022 · 1 comment

Comments

@hi-im-buggy
Copy link

Bug

Currently dragon cannot handle combined flags in the arguments passed to it on the shell, for eg:

dragon-drag-and-drop -tk

Expected behaviour

dragon launches with -t and -k flags

Actual behaviour

dragon returns the following error

dragon-drag-and-drop: error: unknown option `-tk'.
Usage: dragon-drag-and-drop [OPTIONS] FILENAME

Potential fix

This can be fixed by using the standard getopt C library. I'd be happy to write PR for the same.

@N-R-K
Copy link
Contributor

N-R-K commented May 6, 2022

This can be fixed by using the standard getopt C library. I'd be happy to write PR for the same.

Standard POSIX getopt doesn't support long-options. And getopt_long is GNU extension. I don't think it makes sense to use GNU extension for negligible benefit, typing -t -k isn't too bad.

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

No branches or pull requests

2 participants