Skip to content

Commit 2c7e170

Browse files
committed
Prevent service config TUI from always running in headless mode
1 parent 0302de0 commit 2c7e170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rocketpool-cli/service/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func RegisterCommands(app *cli.Command, name string, aliases []string) {
193193
return fmt.Errorf("error checking if config path exists: %w", err)
194194
}
195195

196-
isHeadless := c.NumFlags() > 0
196+
isHeadless := c.NumFlags() > c.Root().NumFlags()
197197

198198
if isHeadless {
199199
return configureServiceHeadless(c)

0 commit comments

Comments
 (0)