diff options
| author | Jeff Carr <[email protected]> | 2025-10-18 10:42:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-18 10:42:29 -0500 |
| commit | d345cee855f6f315d3699becb96197fb5a6da1af (patch) | |
| tree | 8b307af14614ac0bc39683a54d22aa646e532d6d | |
| parent | 317ee925ef78d5eac752232dd78bd24385141bf6 (diff) | |
well, it builds and mostly works
| -rw-r--r-- | argv.struct.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/argv.struct.go b/argv.struct.go index 36c5c2d..41c5a7a 100644 --- a/argv.struct.go +++ b/argv.struct.go @@ -3,5 +3,9 @@ package main var argv args type args struct { - Demo string `arg:"positional" help:"this is just a demo"` + Demo *EmptyCmd `arg:"subcommand:demo" help:"this is just a demo"` + // Demo string `arg:"positional" help:"this is just a demo"` +} + +type EmptyCmd struct { } |
