Moved logs to the right place.
This commit is contained in:
parent
65a464cc3d
commit
604884f69b
1 changed files with 2 additions and 3 deletions
3
main.go
3
main.go
|
@ -38,10 +38,9 @@ func init() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
for _, arg := range os.Args {
|
||||
fmt.Println(flagIsSet(arg, "h"))
|
||||
fmt.Println(arg == "--help")
|
||||
|
||||
for _, arg := range os.Args {
|
||||
if flagIsSet(arg, "h") || arg == "--help" {
|
||||
fmt.Println(string(help))
|
||||
os.Exit(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue