1

This question already has an answer here:

A command has help file.

cd --help

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.

marked as duplicate by dessert command-line Nov 5 '18 at 21:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    As you already know it depends on the command... the best way to find out is to check the man page or test and see if it works. – Ravexina Nov 5 '18 at 16:43

Browse other questions tagged or ask your own question.