Help message
A help message is command-line documentation that explains a program’s invocation syntax, arguments, options, and usage.
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.
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.
Also covered in
What to know first
- command-line argumentA command-line argument is a value or option supplied to a program when it is invoked, providing input or affecting its behavior.
- stringA string is a programming-language value representing textual data as an ordered sequence of characters or encoded units.
Related concepts
- help optionproduced by · A help option is a command-line option that displays a program’s usage information and available options.
- flag.FlagSetproduced by · flag.FlagSet is a Go flag package type that defines a set of command-line flags and manages their parsing and usage behavior.
- command-line interfaceused by · A command-line interface is a text-based interface through which users or programs invoke software or system operations by entering commands and receiving output.
- argparseproduced by · argparse is Python’s standard-library module for defining and parsing command-line arguments and generating related usage, help, and error information.
- command-line tooluses · A command-line tool is a software program operated through textual commands, options, or arguments in a command-line interface.
Questions about help message
What is help message?
A help message is command-line documentation that explains a program’s invocation syntax, arguments, options, and usage.
Which Manning books explain help message?
Tiny Python Projects: Learn coding and testing with puzzles and games and Go by Example.
What should I know before learning help message?
Manning books that teach help message usually introduce command-line argument and string first.
What is help message also called?
Help message is also called usage message.
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.

