nat / natbot

Drive a browser with GPT-3
MIT License
1.9k stars 282 forks source link

Fix bug introduced with quiet command #9

Closed quantum9Innovation closed 1 year ago

quantum9Innovation commented 1 year ago

Unfortunately #7 introduced a bug where failing to specify a positional argument resulted in failure, essentially forcing the user to enable quiet mode. This PR fixes that by checking to ensure that a second positional argument does exist before checking to see if that argument toggles quiet mode.