cmd/gondole-cli/main.go
changeset 85 abf0f5e40281
parent 84 519be52bfced
child 86 ae6efea0207f
--- a/cmd/gondole-cli/main.go	Wed Apr 12 17:33:17 2017 +0200
+++ b/cmd/gondole-cli/main.go	Wed Apr 12 17:36:27 2017 +0200
@@ -1,17 +1,20 @@
 package main
 
 import (
-	"github.com/keltia/gondole"
-	"github.com/urfave/cli"
 	"log"
 	"os"
 	"strings"
+
+	"github.com/urfave/cli"
+
+	"github.com/keltia/gondole"
 )
 
 var (
-	fVerbose  bool
-	fInstance string
-	fScopes   string
+	fVerbose             bool
+	fInstance            string
+	fUsername, fPassword string
+	fScopes              string
 
 	instance *gondole.Client
 	cnf      *Server
@@ -135,6 +138,16 @@
 			Usage:       "use these scopes",
 			Destination: &fScopes,
 		},
+		cli.StringFlag{
+			Name:        "username,login",
+			Usage:       "user name",
+			Destination: &fUsername,
+		},
+		cli.StringFlag{
+			Name:        "password",
+			Usage:       "user password",
+			Destination: &fPassword,
+		},
 	}
 	app.Run(os.Args)
 }