~egtann/terrafirma

73a67d100526fd79a770114def66c7a7e035352a — Evan Tann 21 days ago 2c6b1fa
add version flag
1 files changed, 6 insertions(+), 0 deletions(-)

M cmd/terrafirma/main.go
M cmd/terrafirma/main.go => cmd/terrafirma/main.go +6 -0
@@ 36,9 36,15 @@ func run() error {
		bins          = flag.String("b", "", "bins")
		timeout       = flag.Duration("t", 5*time.Minute, "timeout")
		ignoreDestroy = flag.Bool("i", false, "ignore servers to be destroyed")
		version       = flag.Bool("v", false, "version")
	)
	flag.Parse()

	if *version {
		fmt.Println("terrafirma 0.0.1")
		return nil
	}

	args := flag.Args()
	badCmd := errors.New("must use: plan, create, destroy, inventory")
	if len(args) != 1 {