Reorder cmdline args proper

(no functional change)
This commit is contained in:
Shteryana Shopova 2019-07-20 22:06:22 +03:00
parent 56e4e4218a
commit 0ffbf28dd2
1 changed files with 3 additions and 3 deletions

View File

@ -23,11 +23,11 @@ import (
func main() { func main() {
parser := argparse.NewParser("sshkeys", "Fetch SSH keys for a Github team members") parser := argparse.NewParser("sshkeys", "Fetch SSH keys for a Github team members")
ghTeam := parser.String("t", "team", &argparse.Options{Required: false, Help: "Github Team name", Default: "NOC"})
ghOrganization := parser.String("o", "org", &argparse.Options{Required: false, Help: "Github Organization name", Default: "OpenFest"})
authToken := parser.String("a", "authtoken", &argparse.Options{Required: false, Help: "Github Auth token", Default: AuthToken}) authToken := parser.String("a", "authtoken", &argparse.Options{Required: false, Help: "Github Auth token", Default: AuthToken})
quiet := parser.Flag("q", "quiet", &argparse.Options{Required: false, Help: "Skip output to stdout", Default: false})
keysDir := parser.String("d", "directory", &argparse.Options{Required: false, Help: "Path where to store the key files", Default: "./"}) keysDir := parser.String("d", "directory", &argparse.Options{Required: false, Help: "Path where to store the key files", Default: "./"})
quiet := parser.Flag("q", "quiet", &argparse.Options{Required: false, Help: "Skip output to stdout", Default: false})
ghOrganization := parser.String("o", "org", &argparse.Options{Required: false, Help: "Github Organization name", Default: "OpenFest"})
ghTeam := parser.String("t", "team", &argparse.Options{Required: false, Help: "Github Team name", Default: "NOC"})
// Parse input // Parse input
err := parser.Parse(os.Args) err := parser.Parse(os.Args)