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

Refactored arguments.py to utilize argparse for command-line argument parsing.

Open arncv opened this issue 2 years ago • 2 comments

Refactored arguments.py to utilize argparse for command-line argument parsing.

  • Replaced manual argument parsing with argparse.
  • Specified types and default values for each argument using argparse.
  • Handled missing arguments by providing default values.

This refactoring aims to address the concerns raised in issue https://github.com/Pythagora-io/gpt-pilot/issues/138.

arncv avatar Oct 06 '23 14:10 arncv

There are a lot of other areas in the code with refer to project.args['some_key'] often they're not even mentioned in arguments.py

nalbion avatar Oct 08 '23 08:10 nalbion

sorry @arncv I accidentally closed PR. As @nalbion mentioned there are multiple places in code where we are using args['some_key'] and that should be changed also

LeonOstrez avatar Oct 10 '23 22:10 LeonOstrez

This is handled properly with v0.2

LeonOstrez avatar Jul 04 '24 13:07 LeonOstrez