To add to this, here&#x27;s a full example of conditionally using getopt that still works without it. It also includes an example of the recommended-by-GNU help and version options, which jzwinck mentioned.<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;pdkl95&#x2F;363d48999e9df027a99c" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;pdkl95&#x2F;363d48999e9df027a99c</a>