Use std flag package

master
James Mills 2 days ago
parent a560af7306
commit e552c5c045
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 6
      tests/cli_test.go

@ -1,10 +1,10 @@
package tests
import (
"flag"
"testing"
"github.com/google/go-cmdtest"
flag "github.com/spf13/pflag"
"git.mills.io/prologic/box/cgroups"
"git.mills.io/prologic/box/cli"
@ -13,8 +13,8 @@ import (
const binaryName = "box"
var (
update = flag.BoolP("update", "u", false, "update test files with results")
verbose = flag.BoolP("verbose", "v", false, "enable verbose logging")
update = flag.Bool("update", false, "update test files with results")
verbose = flag.Bool("verbose", false, "enable verbose logging")
)
func TestCLI(t *testing.T) {

Loading…
Cancel
Save