liveBook · Manning

Help message

A help message is command-line documentation that explains a program’s invocation syntax, arguments, options, and usage.

How 2 Manning books explain it

Tiny Python Projects: Learn coding and testing with puzzles and games

A help message is command-line documentation printed by a program to explain its invocation syntax and available arguments or options.

How it is used
Guides command-line users through program invocation, arguments, options, and input requirements.
How deep it goes
Explains generated usage output and argument errors through argparse, but does not descend into parser internals.
Examples
Demonstrates hello.py, scrambler.py, mad.py, gematria.py, picnic.py, gashlycrumb.py, and friar.py help output.
What you can do after
Apply it via argparse to create documented command-line programs with standard help output and validation feedback.

Read how Tiny Python Projects: Learn coding and testing with puzzles and games explains help message →

Go by Example

A usage message is command-line help text describing a program's available options, types, defaults, and invocation syntax.

How it is used
Guides command-line users through available options, defaults, required inputs, and valid invocation syntax.
How deep it goes
Explains handwritten and FlagSet-generated help, then customizes output for positional arguments; it does not cover broader CLI documentation.
Examples
Uses the HIT tool, multiline raw strings, generated `-h` output, invalid flag input, and a positional HTTP server URL.
What you can do after
Build it from scratch, generate help with Go's flag package, or customize usage for required positional arguments.

Read how Go by Example explains help message →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.