fix: use correct flag positional argument

This commit is contained in:
Jose Diaz-Gonzalez
2017-05-01 19:15:40 -06:00
committed by Michael Hobbs
parent 72eb8a06f0
commit 25759bcbb4
6 changed files with 20 additions and 20 deletions

View File

@@ -12,10 +12,10 @@ import (
// writes the ip to disk
func main() {
flag.Parse()
appName := flag.Arg(1)
procType := flag.Arg(2)
containerIndex := flag.Arg(3)
ip := flag.Arg(4)
appName := flag.Arg(0)
procType := flag.Arg(1)
containerIndex := flag.Arg(2)
ip := flag.Arg(3)
if appName == "" {
common.LogFail("Please specify an app to run the command on")