mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-03-02 17:09:19 +00:00
use fs.GetArgs()
This commit is contained in:
parent
79d53f34da
commit
51e8ac85be
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user