0
0
Fork 0
Commit Graph

5 Commits

Author SHA1 Message Date
Gibheer ebdfe46386 the documentation has to go above the package
This makes the documentation in the main.go readable on the godoc.org
website and through the godoc command.
2015-07-24 12:44:43 +02:00
Gibheer ba5a59931e reformat code with gofmt
Yes, I know that this breaks the history search, but it had to be done
sooner or later. I also adjusted my editor to follow the guidelines more
closely.
2015-03-25 20:43:18 +01:00
Gibheer c69f4de8ce first parameter of args ignored
When prsing the flags, instead of parsing everything given, only the
rest was parsed.
2015-03-24 21:02:13 +01:00
Gibheer ccaef440f4 add documentation for the command 2015-03-21 12:02:07 +01:00
Gibheer 9e351c05d5 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.
2015-03-19 01:35:18 +01:00