DELAPARRA
Index
Color
NL
Category: CLI flags

-h, --help (Help)

Explained by Updated

What is -h, --help (Help)?

-h, --help (Help): Print the command's usage information and exit. -h or --help prints how a command is used, with its options and arguments, then exits. It is the fastest documentation you have, because it matches the exact version you have installed. Online answers often describe a different version. A flag that existed three years ago may have been renamed, and a new one may solve your problem directly. --help tells you what your copy actually supports.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about -h, --help (Help)

What should you keep in mind with -h, --help (Help)?

For subcommands, ask for help at the level you need. git --help describes Git as a whole, while git rebase --help opens the manual page for rebase. In tools like kubectl and docker, docker run --help lists the options for that one command. A few older tools use -h for something else, such as human-readable sizes in ls -h and df -h, so use the long form when in doubt.

At a glance

CategoryCLI flags
Explained by
Updated

More CLI flags terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.