As I am not the first one to shamelessly self plug: I made ngetopt.awk[0] an argument parser for GNU awk that handles long options as well.<p>I&#x27;ve been using it quite a bit, to transform a three-liner awk program into a full fledged command in little effort. Very nice to share with colleagues.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;joepvd&#x2F;ngetopt.awk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;joepvd&#x2F;ngetopt.awk</a>