A helper function for setting up an argparse parser.
Project description
Provides some common setup actions for argparse. Import and be happy.
Specifically: init_parser() sets up help, version, and docstring options for a program. Help and version are easy to get with argparse normally; printing your docstring is the interesting part. It returns a parser with these basic options configured. After that, you’ll want to your application-specific customizations.
print_and_exit() is an argparse action for printing an arbitrary string - specifically, in this case, a program’s docstring.
======== Versions ========
Version 1.0: Extracted from UNT_to_IPA.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for basic_argparse-1.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f46a49dee709abb9acebb236cce3061c259cd76033c022957bef0705d20e04 |
|
MD5 | 0f72e289d7e9f59a0d3d7c7311b29b3a |
|
BLAKE2b-256 | 191bb02f04832d947f7305ae5b55c348b9decfda29bba84f7192e936adaf14e1 |