argh icon indicating copy to clipboard operation
argh copied to clipboard

It'd be nice to manually print usage

Open turboladen opened this issue 6 years ago • 3 comments

In some cases (i.e. if an argument is the correct type but maybe isn't exactly desirable), it'd be nice to short-circuit the app and manually print the usage. I didn't see a way to do this in the docs.

I'm using 0.1.3.

turboladen avatar Feb 14 '20 19:02 turboladen

Do you mean that, on top of validating the type of the argument, there should be a way to add a function that further checks if whether or not the argument is valid? I'm looking for making my first open source contribution, so I'm thinking about adding this feature

victordeleau avatar Aug 13 '20 16:08 victordeleau

Mm, I might’ve missed this in the docs somewhere, but I mainly just wanted a way to manually print to STDOUT the usage info.

turboladen avatar Aug 13 '20 17:08 turboladen

Ok. Maybe I could add a function that you can manually call to print usage in your code then. What do you think @benbrittain ? Any recommendation as to how this should be done ? = ]

victordeleau avatar Sep 06 '20 12:09 victordeleau