fixed flags
This commit is contained in:
parent
3d54199faa
commit
398ff981d1
3 changed files with 41 additions and 23 deletions
|
|
@ -45,10 +45,10 @@ func usage() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
if len(os.Args) == 0 {
|
||||
if len(os.Args) < 2 {
|
||||
usage()
|
||||
}
|
||||
arg := os.Args[0]
|
||||
arg := os.Args[1]
|
||||
switch arg {
|
||||
case "new", "get", "ls", "req", "approve", "reject", "del":
|
||||
//flag.StringVar(&config, "config", "/etc/keyctl/url.conf", "path to client config file")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue