diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-04-24 11:51:55 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-04-24 11:51:55 +0200 |
commit | 4101de3daf91c6d35b92395a72bf84132ef48f7c (patch) | |
tree | 67db98f6bd386be75866d8a44bc950ab2028586c /docs/index.rst | |
download | click-4101de3daf91c6d35b92395a72bf84132ef48f7c.tar.gz |
Initial commit
Diffstat (limited to 'docs/index.rst')
-rw-r--r-- | docs/index.rst | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000..b039ec5 --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,65 @@ +click +===== + +click is a Python package for creating beautiful command line interfaces +in a composable way with as little amount of code as necessary. It's the +"Command Line Interface Creation Kit". It's highly configurable but comes +with good defaults out of the box. + +It aims at making writing command line tools fun and quick without causing +user frustration at not being able to implement an intended CLI API. + +Click in three points: + +- arbitrary nesting of commands +- automatic help page generation +- supports lazy loading of subcommands at runtime + +What does it look like? A simple example can be this:: + + import click + + @click.command() + @click.option('--count', default=1, help='number of greetings') + @click.option('--name', prompt='Your name', + help='the person to greet', required=True) + def hello(count, name): + for x in range(count): + print('Hello %s!' % name) + + if __name__ == '__main__': + hello() + +You can get the library directly from PyPI:: + + pip install click + +Documentation Contents +---------------------- + +This part of the documentation guides you through all the usage patterns +of the library. + +.. toctree:: + :maxdepth: 2 + + why + quickstart + parameters + options + arguments + commands + prompts + documentation + setuptools + +API Reference +------------- + +If you are looking for information on a specific function, class or +method, this part of the documentation is for you. + +.. toctree:: + :maxdepth: 2 + + api |