Pythagora-io / gpt-pilot

The first real AI developer
Other
29.91k stars 2.97k forks source link

refactor `arguments.py` to use `argparse` #138

Open nalbion opened 11 months ago

nalbion commented 11 months ago

argparse makes it easier to provide help/documentation on the command line and also provides choices, default and type

It also returns an object rather than a dict. There are currently arg options scattered throughout the code which are not mentioned in arguements.py

arncv commented 11 months ago

I'd like to work on this issue.

jakob1379 commented 11 months ago

Why not use typer for an even better experience, auto documented cli and IMHO much more beautiful.

Charu-Mittal12 commented 11 months ago

how to access this file arguments.py?

nalbion commented 11 months ago

@Charu-Mittal12 https://github.com/Pythagora-io/gpt-pilot/blob/main/pilot/utils/arguments.py

Borda commented 4 months ago

how about using Fire - https://github.com/google/python-fire