diff options
| -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 { } |
