use fs.GetArgs()

This commit is contained in:
onyx-and-iris 2026-02-17 16:41:42 +00:00
parent 79d53f34da
commit 51e8ac85be

View File

@ -3,7 +3,6 @@ package main
import ( import (
"bufio" "bufio"
"errors" "errors"
"flag"
"fmt" "fmt"
"io" "io"
"os" "os"
@ -138,7 +137,7 @@ func run() (func(), error) {
return closer, nil return closer, nil
} }
commands := flag.Args() commands := fs.GetArgs()
if len(commands) == 0 { if len(commands) == 0 {
log.Debug("no commands provided, defaulting to 'status'") log.Debug("no commands provided, defaulting to 'status'")
commands = append(commands, "status") commands = append(commands, "status")