From d345cee855f6f315d3699becb96197fb5a6da1af Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Oct 2025 10:42:29 -0500 Subject: well, it builds and mostly works --- argv.struct.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { } -- cgit v1.2.3