This question already has an answer here:
- How can I get help on terminal commands? 9 answers
A command has help file.
A command has options.
ls [-Option(s)] [file ...]
Some options (command parameters) has help as well.
$ git describe -h usage: git describe [options] <committish>* --contains find the tag that comes after the commit --debug debug search strategy on stderr --all use any ref in .git/refs --tags use any tag in .git/refs/tags --abbrev [<n>] use <n> digits to display SHA-1s --candidates <n> consider <n> most recent tags (default: 10)
How can I know whether a command parameter has help or not?
If so, should I use
command option --help to get help, or are there alternatives.