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

Use getopt style short/long argument flags #30

Closed
wants to merge 1 commit into from
Closed

Use getopt style short/long argument flags #30

wants to merge 1 commit into from

Conversation

wader
Copy link
Owner

@wader wader commented Jan 8, 2024

No description provided.

@wader
Copy link
Owner Author

wader commented Jan 8, 2024

@patrislav1 What do you think? make it behave more similar to other tools... a bit annoying the flag package don't support long options

@patrislav1
Copy link
Collaborator

you mean like python argparse? yes would be nice
isn't there a golang equivalent for it?

@patrislav1
Copy link
Collaborator

oh I see you already implemented it 😮
I mean it would even better to have short aliases for common stuff like -s, --charboxsize Character box size etc. but don't know how straightforward it is to implement

@wader
Copy link
Owner Author

wader commented Jan 8, 2024

Yeap! im using https://github.com/rsc/getopt that support short/long but now i noticed that the standard library flag package do seem to allow --flag and --flag= and can probably workaround support short flag also. So maybe can skip using the getopt package. Will have a look.

Ideas for other short flags to support? maybe also if some flags should be renamed?

@wader
Copy link
Owner Author

wader commented Jan 10, 2024

Replaced by #34

@wader wader closed this Jan 10, 2024
@wader wader deleted the getopt branch February 28, 2024 09:53
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.

2 participants