gpt-pilot icon indicating copy to clipboard operation
gpt-pilot copied to clipboard

refactor `arguments.py` to use `argparse`

Open nalbion opened this issue 1 year ago • 5 comments

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

nalbion avatar Oct 06 '23 13:10 nalbion

I'd like to work on this issue.

arncv avatar Oct 06 '23 14:10 arncv

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

jakob1379 avatar Oct 08 '23 05:10 jakob1379

how to access this file arguments.py?

Charu-Mittal12 avatar Oct 09 '23 11:10 Charu-Mittal12

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

nalbion avatar Oct 09 '23 13:10 nalbion

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

Borda avatar Apr 27 '24 19:04 Borda