Browse Source

Print usage if no arguments

master
Blink The Things 3 years ago
parent
commit
9ae78197db
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      cmd/modhex.go

+ 5
- 0
cmd/modhex.go View File

@ -28,6 +28,11 @@ func main() {
}
flag.Parse()
if flag.NArg() < 1 {
flag.Usage()
os.Exit(0)
}
if decode {
// decode was selected


Loading…
Cancel
Save