aboutsummaryrefslogtreecommitdiff
path: root/9ba6a88449e6297ea925e0c59e923c56e742983f
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-03-19 01:35:18 +0100
committerGibheer <gibheer@gmail.com>2015-03-19 01:35:18 +0100
commit9e351c05d5c067e20a9a6a34798dccd19dbd7296 (patch)
treebf1640b7be679422b1901406d762e7f750b78405 /9ba6a88449e6297ea925e0c59e923c56e742983f
parentc0cc30089f85dc439398d14399a31da8169d471e (diff)
add command flag parser
This is a small command flag parser hacked away in a couple hours. It is built after cobra (https://github.com/spf13/cobra), but with some small details changed. Instead of breaking with the go flag API (single and double dashes) this uses the golang flags package. This means, that single character flags do not work, but in this case it wouldn't make much sense to replace long clear argument names with short nothing saying arguments (-p for --private-key or --public-key?). This should definitely help with the help and error messages.
Diffstat (limited to '9ba6a88449e6297ea925e0c59e923c56e742983f')
0 files changed, 0 insertions, 0 deletions