As the title, arg.Parse(&args) always return ErrHelp after getting --help and -h flags. Is this what the program is supposed to do?
And how to make it work (print help interface after getting --help and -h flags) by using arg.Parse(&args) rather than arg.MustParse(&args)?
As the title,
arg.Parse(&args)
always returnErrHelp
after getting--help
and-h
flags. Is this what the program is supposed to do? And how to make it work (print help interface after getting--help
and-h
flags) by usingarg.Parse(&args)
rather thanarg.MustParse(&args)
?Thanks for helping <3