nk412 / optparse

Simple command line arguments parser for BASH
MIT License
158 stars 32 forks source link

Doesn't show the command usage message when no arguments are passed #13

Closed mani098 closed 8 years ago

mani098 commented 8 years ago

Eg; ./zkcomp (without passing any arguments, it doesn't validate options)

nk412 commented 8 years ago

Dealing with missing arguments should be responsibility of the script. Default values can be set for all the arguments. In your case, you probably should check for empty variables and then exit out with instructions to run with --help.