New answers tagged

0

You can't disambiguate options with arguments from one another unless a double-dash denotes a long one and a single dash signifies a short one. -f file ...would mean the -f option with its file argument ...whereas --ffile would be a wholly different option without an argument.


1

This can be helpful (for tar but I think it can be extended to other programs as well): https://www.gnu.org/software/tar/manual/html_section/tar_21.html Long options are meant to be obvious and easy to remember, and their meanings are generally easier to discern than those of their corresponding short options (see below). For example: $ tar --create ...



Top 50 recent answers are included