fixed flags

This commit is contained in:
ston1th 2023-03-15 02:11:37 +01:00
commit 398ff981d1
3 changed files with 41 additions and 23 deletions

View file

@ -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")