Update truss cmd to pflag for POSIX flags
This commit is contained in:
Родитель
ec37df44ae
Коммит
d3420abd18
|
@ -37,7 +37,7 @@ func TestBasicTypes(t *testing.T) {
|
|||
|
||||
func TestBasicTypesWithPBOutFlag(t *testing.T) {
|
||||
testEndToEnd("1-basic", t,
|
||||
"-pbout",
|
||||
"--pbout",
|
||||
"github.com/TuneLab/go-truss/cmd/_integration-tests/cli/test-service-definitions/1-basic/pbout")
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"go/build"
|
||||
"io"
|
||||
|
@ -11,6 +10,7 @@ import (
|
|||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/pkg/errors"
|
||||
flag "github.com/spf13/pflag"
|
||||
|
||||
"github.com/TuneLab/go-truss/truss"
|
||||
"github.com/TuneLab/go-truss/truss/execprotoc"
|
||||
|
@ -26,7 +26,7 @@ import (
|
|||
var (
|
||||
pbPackageFlag = flag.String("pbout", "", "Go package path where the protoc-gen-go .pb.go files will be written")
|
||||
svcPackageFlag = flag.String("svcout", "", "Go package path where the generated Go service will be written")
|
||||
verboseFlag = flag.Bool("v", false, "verbose output")
|
||||
verboseFlag = flag.BoolP("verbose", "v", false, "verbose output")
|
||||
)
|
||||
|
||||
var binName = filepath.Base(os.Args[0])
|
||||
|
|
Загрузка…
Ссылка в новой задаче