There is one example shell script demonstrate how to use getopt (GNU version) to parse command line argument handling. getopt GNU version is able to parse both short and long options. The bash built-in getopts cannot process long option.
This post (in Chinese) is a very good reference for getopt
Apr 1, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment