Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
man page template in Markdown

% HELLO(1) Version 1.0 | Frivolous "Hello World" Documentation

NAME

hello — prints Hello, World!

SYNOPSIS

| hello [-o|--out file] [dedication] | hello [-h|--help|-v|--version]

DESCRIPTION

Prints "Hello, dedication!" to the terminal. If no dedication is given, uses the default dedication. The default dedication is chosen by the following sequence:

  1. Using the environment variable DEFAULT_HELLO_DEDICATION
  2. Using the per-user configuration file, ~/.hellorc
  3. Using the system-wide configuration file, /etc/hello.conf
  4. Finally, using "world".

Options

-h, --help

: Prints brief usage information.

-o, --output

: Outputs the greeting to the given filename.

The file must be an **open(2)**able and **write(2)**able file.

-v, --version

: Prints the current version number.

FILES

~/.hellorc

: Per-user default dedication file.

/etc/hello.conf

: Global default dedication file.

ENVIRONMENT

DEFAULT_HELLO_DEDICATION

: The default dedication if none is given. Has the highest precedence if a dedication is not supplied on the command line.

BUGS

See GitHub Issues: https://github.com/[owner]/[repo]/issues

AUTHOR

Foobar Goodprogrammer foo@example.org

SEE ALSO

hi(1), hello(3), hello.conf(5)

Licensed under the terms of CC0.

To the extent possible under law, Eddie Antonio Santos has waived all copyright and related or neighboring rights to this work. This work is published from: Canada.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.