Metadata-Version: 2.1
Name: argparse2typer
Version: 0.0.2
Summary: Convert Python's default argparse into typer CLI
Project-URL: Homepage, https://github.com/bomcon123456/argparse2typer
Project-URL: Bug Tracker, https://github.com/pypa/argparse2typer/issues
Author-email: termanteus <termanteus@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: num2words
Description-Content-Type: text/markdown

# argparse2typer
## Use case
- Do you ever need to work on an open source project and find that they use argparse? Nothing's wrong with argparse but you have already been falling in love with `typer` CLI (you all will someday)?
- Fear no more, just use `argparse2typer` and all the argparse code would be parsed into `typer` CLI with as little changes as possible.

## Installation
- With pip:
```
pip install argparse2typer
```

## Usage
1. Locate the line `args = parser.parse_args()` in the original script
2. Import the function `from argparse2typer import argparse2typer`
3. Run the function before `parse_args`:
```
argparse2typer(parser=parser, output_path=Path(<path>)) # <- new line
args = parser.parse_args()
```
4. New file @<path> will be created with the typer CLI format!
