From a7485d587ab0f4692fb16202172f6443cff7a49e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 20 Jun 2026 01:44:16 +0900 Subject: cmd/app: pass user-specified arguments An extra argument is added to pad out argv0. Signed-off-by: Ophestra --- cmd/app/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/app/main.go') diff --git a/cmd/app/main.go b/cmd/app/main.go index d937ceac..b911e7dd 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -148,7 +148,7 @@ func main() { c.NewCommand( "run", "Start the named application", func(args []string) error { - if len(args) != 1 { + if len(args) < 1 { dents, err := os.ReadDir(base.Append("app").String()) if err != nil { return err @@ -197,7 +197,7 @@ func main() { config.Container.Args[2] = flagCommand } - return run(ctx, msg, config) + return run(ctx, msg, config, args[1:]...) }, ). Flag( -- cgit v1.3.1