|
|
ec5eff4150
|
flags : ParseError return from expandOpts and Help for reflection guards
|
2026-01-29 11:44:53 -08:00 |
|
|
|
8fe659a171
|
help : HelpError holds cmd.Subcommand and summary : NewHelpError constructor
|
2026-01-29 11:09:55 -08:00 |
|
|
|
d4015598be
|
flags : return HelpError and print at the callsite
|
2026-01-29 10:23:11 -08:00 |
|
|
|
8e7daebb18
|
A flags_test.go
|
2026-01-28 21:43:25 -08:00 |
|
|
|
af3fb9f552
|
parseArgsInternal
|
2026-01-28 20:28:11 -08:00 |
|
|
|
012110a369
|
flags : better method separation
|
2026-01-28 18:22:37 -08:00 |
|
|
|
a243d3c125
|
flags : handle String validation : works but getting messier all the time
|
2026-01-26 20:35:58 -08:00 |
|
|
|
7dfad8c22e
|
flags : IsHelp method
|
2026-01-26 19:51:45 -08:00 |
|
|
|
b8156931fd
|
flags : Flag interface instead of generic, allowing us to move the reflection out into a field expansion func only
|
2026-01-26 18:48:55 -08:00 |
|
|
|
0642c15998
|
doc
|
2026-01-21 18:11:41 -08:00 |
|
|
|
6f9f5dbb23
|
flags : reflection-powered general ParseArgs : uglier than tidy switch statements per cmd, but much easier to add new flags
|
2026-01-21 11:54:24 -08:00 |
|
|
|
f645e18b5b
|
flags.Help takes a summary string
|
2026-01-20 20:17:32 -08:00 |
|
|
|
c434005d39
|
cmd pkg for Subcommand type, use everywhere
|
2026-01-20 13:30:53 -08:00 |
|
|
|
77e3e23446
|
flags : more common help functions, but redefining the subcmds in each package is probably wrong, esp. since last had to be deduped
|
2026-01-20 13:10:47 -08:00 |
|
|
|
03d38b4ba7
|
flags.ValidateIncrementFetchOrExit to handle value expecting Flag[string]
|
2026-01-19 11:37:01 -08:00 |
|
|
|
c00904a004
|
log.Fatal and more consistent error strings
|
2026-01-19 09:17:49 -08:00 |
|
|
|
c19b11e115
|
flags.ValidValueOrExit and os.Exit on Help
|
2026-01-18 20:17:40 -08:00 |
|
|
|
9932a84286
|
flags : Arg IsSet
|
2026-01-18 19:01:13 -08:00 |
|
|
|
0d32446986
|
flags : can check for both Flag types because the value.FieldByName().Type() can be printed
|
2026-01-18 18:29:34 -08:00 |
|
|
|
869ca3c290
|
docs and private funcs
|
2026-01-18 18:19:56 -08:00 |
|
|
|
7e3529aaee
|
flags : generic Flag validity check using a type switch
|
2026-01-18 18:04:01 -08:00 |
|
|
|
1fed129838
|
flags : Help outputs a positional spec as well
|
2026-01-18 15:38:16 -08:00 |
|
|
|
c7c48eab43
|
flags : tabwriter output
|
2026-01-18 15:03:31 -08:00 |
|
|
|
0422b4a146
|
flags : Help string using reflection iteration over fields
|
2026-01-18 14:48:58 -08:00 |
|
|
|
d89b48adc3
|
flags : generic string|bool value field
|
2026-01-18 09:47:31 -08:00 |
|
|
|
f23a98fb5d
|
flags rewrite : just well defined structs and a clear switch block
|
2026-01-18 09:03:27 -08:00 |
|
|
|
f483e08105
|
flags pkg : but im not convinced this is right
|
2026-01-17 20:21:37 -08:00 |
|