You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flagSet.StringVarP(&creds, "user", "u", "", "Login Credentials: ")
flagSet.StringVarP(&passwd, "password", "p", "", "Password for User.")
flagSet.StringVarP(&lastname, "lastName", "f", "", "First Name"
flagSet.StringVarP(&lastname, "lastName", "l", "", "Last Name"
flagSet.Lookup("silent").NoOptDefVal = "Fred Flintstone"
...
When I run the program:
myProgram --firstName=Barney --lastName=Rubble -u brubble -p b3dr0ck,
it works.
When I run the program:
myProgram -f Barney -lastName Rubble -u brubble -p b3dr0ck,
This breaks things. All options past the -f will not be accepted and a value will not get assigned to firstName or lastName variable.s
The text was updated successfully, but these errors were encountered:
var flagSet flag.FlagSet
flagSet.StringVarP(&creds, "user", "u", "", "Login Credentials: ")
flagSet.StringVarP(&passwd, "password", "p", "", "Password for User.")
flagSet.StringVarP(&lastname, "lastName", "f", "", "First Name"
flagSet.StringVarP(&lastname, "lastName", "l", "", "Last Name"
flagSet.Lookup("silent").NoOptDefVal = "Fred Flintstone"
...
When I run the program:
myProgram --firstName=Barney --lastName=Rubble -u brubble -p b3dr0ck,
it works.
When I run the program:
myProgram -f Barney -lastName Rubble -u brubble -p b3dr0ck,
This breaks things. All options past the -f will not be accepted and a value will not get assigned to firstName or lastName variable.s
The text was updated successfully, but these errors were encountered: