brentyi / tyro

CLI interfaces & config objects, from types
https://brentyi.github.io/tyro
MIT License
467 stars 23 forks source link

Is tyro compatible with argparse? #146

Closed Colezwhy closed 2 months ago

Colezwhy commented 2 months ago

Hi, great development tools, much thanks! But I wonder is tyro compatible with argparse? If I want to use tyro and argparse at the same time, how should I make them both work?

brentyi commented 2 months ago

Hello! tyro is built on top of argparse, but is designed to completely abstract argparse away. Using the tyro API simultaneously with the under-the-hood argparse API isn't a design goal.

You could try simple-parsing (https://github.com/lebrice/SimpleParsing) or jsonargparse (https://github.com/omni-us/jsonargparse)!

Colezwhy commented 2 months ago

Hello! tyro is built on top of argparse, but is designed to completely abstract argparse away. Using the tyro API simultaneously with the under-the-hood argparse API isn't a design goal.

You could try simple-parsing (https://github.com/lebrice/SimpleParsing) or jsonargparse (https://github.com/omni-us/jsonargparse)!

Got it now! Thank you.