Parse command line arguments.
verbose
/version
flags with shorthands:
getopt --options vV --longoptions verbose,version -- --version --verbose
--file
option with a required argument with shorthand -f
:
getopt --options f: --longoptions file: -- --file=somefile
--verbose
option with an optional argument with shorthand -v
, and pass a non-option parameter arg
:
getopt --options v:: --longoptions verbose:: -- --verbose arg
-r
and --verbose
flag, a --accept
option with an optional argument and add a --target
with a required argument option with shorthands:
getopt --options rv::s::t: --longoptions verbose,source::,target: -- -v --target target
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB