argparse-enh
Developed argparse-enh, an enhanced version of Python's built-in argparse module that extends command-line argument parsing capabilities beyond traditional CLI usage. This library provides three powerful modes: API integration, shell script support, and automatic GUI generation.
Features
Argparse-API
Converts any independently written script using the argparse module into an importable Python module with just one line of code, enabling programmatic access to CLI functionality. Adds argument validation, detailed usage and help to API calls. Allows easy integration of independent scripts into larger workflows.
Argparse-Shell
Provides full power of Python's argparse module in shell scripts, with very minimal changes to the existing shell script.
Use Cases
- Converting CLI tools into importable Python modules
- Integrating Python argument parsing into shell scripts