Parse command line options in bash with getopt

less than 1 minute read

A possible method to ease the pain of parsing arguments in bash: man getopt. Note that this is GNU getopt in linux, by default. The non-GNU getopt is apparently “fundamentally broken”. Read this link.

Leave a Comment