You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a first-time Kingpin user and I love it so far!
Unix programs often allow users to specify - to read from stdin, or allow values to be read from files using @filename syntax. kingpin returns a parse error when - is passed as a positional argument, and doesn't allow a curl-style use of @- because the @ anywhere on the command line appears to read command line arguments from a file.
The currently implemented behavior is just different enough from expectations to have caused me grief.
Feature requests:
Allow flags and positional arguments to receive strings prefixed with @ as arguments, as opposed to loading command line flags. For example, if I'm writing a key-value store, it should allow ./main put key @valuefile.txt to store the contents of valuefile.txt rather than have its contents treated as a command line.
Refine parser to not treat a single - as the beginning of a command line flag.
Thanks!
The text was updated successfully, but these errors were encountered:
I'm a first-time Kingpin user and I love it so far!
Unix programs often allow users to specify
-
to read from stdin, or allow values to be read from files using @filename syntax. kingpin returns a parse error when-
is passed as a positional argument, and doesn't allow a curl-style use of@-
because the @ anywhere on the command line appears to read command line arguments from a file.The currently implemented behavior is just different enough from expectations to have caused me grief.
Feature requests:
./main put key @valuefile.txt
to store the contents of valuefile.txt rather than have its contents treated as a command line.-
as the beginning of a command line flag.Thanks!
The text was updated successfully, but these errors were encountered: