forked from fritzo/parsable
-
Notifications
You must be signed in to change notification settings - Fork 0
rkomartin/parsable.py
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
parsable.py is a super lightweight set of decorators that lets you add command-line parsing to scripts with minimal effort. How To Use parsable.py: 1. copy parsable.py into your project and import parsable 2. decorate functions you want parsed as follows @parsable.command def my_function (required_arg, optional_arg = 1): 'Help messages are not just a good idea --they are required' ... 3. finish the script with if __name__ == '__parsable__': parsable.dispatch() That's it: 3 short lines of syntax! LICENSE: dual MIT / GPL2
About
A lightweight decorator-based command-line parser
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published