16 Commits

Author SHA1 Message Date
mleku
434c26fb3f update url 2023-11-27 14:03:09 +00:00
Artyom Pervukhin
a3f3a3ebf7 Tweak documentation 2022-06-11 22:20:51 +03:00
Artyom Pervukhin
45ca47b083 Reformat docs 2022-04-13 16:16:41 +03:00
Artyom Pervukhin
250b3e94f1 Add shortcut Parse function
Most common use case is calling autoflags.Define(...) followed by
flag.Parse(), so add shortcut function for this.
2017-03-01 09:33:28 +03:00
Artyom Pervukhin
8b3cacf9af Update documentation 2016-11-01 17:54:42 +03:00
Artyom Pervukhin
8d4acb5334 Define/DefineFlagSet do not return errors but panic
This change breaks backward compatibility, but the fix is trivial (don't
expect any value to be returned), so I'd rather do this change now than
later.
2015-06-17 13:05:51 +03:00
Artyom Pervukhin
d505d35595 Change log.Fatal to panic in usage example
panic() call is a better fit to handle Define() errors, as the only
errors here are the ones of program logic, not something that program
users' can fix providing different input.

The proper solution would be for Define() to panic itself and not return
anything at all, but I'm leaving it as it for the sake of backwards
compatibility as it is mostly a cosmetic issue.
2015-06-05 22:42:04 +03:00
Artyom Pervukhin
333229c1c6 Fix description 2014-11-05 20:02:48 +03:00
Artyom Pervukhin
291f18de14 Typo fix 2014-11-05 17:40:47 +03:00
Artyom Pervukhin
8b7edd5e87 Custom flag.Value implementations support 2014-11-05 17:38:49 +03:00
Artyom Pervukhin
fab5108c34 Typo 2014-08-31 12:52:13 +04:00
Artyom Pervukhin
06be5fbe03 DefineFlagSet function 2014-08-31 12:50:48 +04:00
Artyom Pervukhin
a0e0114ecb Notice about supported types 2014-05-17 13:40:52 +04:00
Artyom Pervukhin
2a8913e6c3 Command line string example 2014-05-16 10:45:27 +04:00
Artyom Pervukhin
6271f25b49 Mistyped tag name fix 2014-05-16 10:36:56 +04:00
Artyom Pervukhin
f634d599c2 Initial release 2014-05-16 09:11:38 +04:00