From b625c04131efde14a35ee311c4db42e88761c78b Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Wed, 11 Jun 2025 19:58:30 +0200 Subject: [PATCH] tart exec: make sure goes after flags like -i and -t in --help (#1090) --- Sources/tart/Commands/Exec.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/tart/Commands/Exec.swift b/Sources/tart/Commands/Exec.swift index dbb7e2b..3b6af89 100644 --- a/Sources/tart/Commands/Exec.swift +++ b/Sources/tart/Commands/Exec.swift @@ -15,15 +15,15 @@ struct Exec: AsyncParsableCommand { Note that all non-vanilla Cirrus Labs VM images already have the Tart Guest Agent installed. """) - @Argument(help: "VM name", completion: .custom(completeLocalMachines)) - var name: String - @Flag(name: [.customShort("i")], help: "Attach host's standard input to a remote command") var interactive: Bool = false @Flag(name: [.customShort("t")], help: "Allocate a remote pseudo-terminal (PTY)") var tty: Bool = false + @Argument(help: "VM name", completion: .custom(completeLocalMachines)) + var name: String + @Argument(parsing: .captureForPassthrough, help: "Command to execute") var command: [String]