parguments 0.3.2

Last updated:

0 purchases

parguments 0.3.2 Image
parguments 0.3.2 Images
Add to Cart

Description:

parguments 0.3.2

A simple cli args parser for Python.
Useful for creating command-line scripts.
Example
"""
catsup v1.0

Usage:
catsup init [<path>]
catsup build
catsup deploy
catsup -h | --help
catsup --version

Options:
-h --help Show this screen and exit.
-s --settings=<file> path to config file. [default: config.json]
"""
from parguments import Parguments

parguments = Parguments(__doc__, version='1.0')

@parguments.command
def init(path):
"""
Usage:
catsup init [<path>]

Options:
-h --help Show this screen and exit.
-s --settings=<file> path to setting file. [default: config.json]
"""
pass

@parguments.command
def build(settings):
"""
Usage:
catsup build [-s <file>|--settings=<file>]

Options:
-h --help Show this screen and exit.
-s --settings=<file> path to setting file. [default: config.json]
"""
pass

@parguments.command
def deploy(settings):
"""
Usage:
catsup deploy [-s <file>|--settings=<file>]

Options:
-h --help Show this screen and exit.
-s --settings=<file> path to setting file. [default: config.json]
"""
pass

if __name__ == '__main__':
parguments.run()
Documents at http://parguments.rtfd.org/

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.