wader / ansisvg

Convert ANSI to SVG
MIT License
89 stars 9 forks source link

Use getopt style short/long argument flags #30

Closed wader closed 10 months ago

wader commented 10 months ago

@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 commented 10 months ago

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

patrislav1 commented 10 months ago

oh I see you already implemented it :open_mouth: 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 commented 10 months ago

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 commented 10 months ago

Replaced by #34