Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Created February 14, 2018 06:01
Show Gist options
  • Save mahmoud/3f15d91e4292b7eec952b00029eac02f to your computer and use it in GitHub Desktop.
Save mahmoud/3f15d91e4292b7eec952b00029eac02f to your computer and use it in GitHub Desktop.
$ python example.py sum --help
Usage: cmd sum [FLAGS]
Just a lil fun in the sum
Flags:
--flagfile FLAGFILE (defaults to None)
--help / -h
--num NUM a number to include in the sum, expects integers at the moment
because it is fun to change things later (defaults to 0)
--grummmmmmmmmmmmmmmmmmm GRUMMMMMMMMMMMMMMMMMMM a bizarre creature, shrek-like, does nothing, but is here to make
the help longer and less helpful but still good for wraps.
(defaults to 0)
---- *shrinks window* -----
$ python example.py sum --help
Usage: cmd sum [FLAGS]
Just a lil fun in the sum
Flags:
--flagfile FLAGFILE
(defaults to None)
--help / -h
--num NUM a number to include in the sum, expects integers
at the moment because it is fun to change things
later (defaults to 0)
--grummmmmmmmmmmmmmmmmmm GRUMMMMMMMMMMMMMMMMMMM
a bizarre creature, shrek-like, does nothing, but
is here to make the help longer and less helpful
but still good for wraps. (defaults to 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment