This directory contains working examples of argparse-ps1 usage.
Simple example with boolean flags:
python basic_example.py --make-ps1
.\Basic-Example.ps1 -Hello
.\Basic-Example.ps1 -ByeExample with string options using uv run (default):
python example.py --make-ps1
.\Example.ps1 -Option "test value"Example using uv run --project mode:
python example_uv_project.py --make-ps1
.\Example-Uv-Project.ps1 -Option "project mode"Example using python runner instead of uv:
python example_python.py --make-ps1
.\Example-Python.ps1 -Option "python runner"-
Navigate to the examples directory:
cd examples -
Generate PowerShell wrappers:
python basic_example.py --make-ps1 python example.py --make-ps1 # etc. -
Use the generated PowerShell scripts:
.\Basic-Example.ps1 -Help .\Example.ps1 -Option "test"
All examples include proper tab completion and help documentation in PowerShell.