fixed --update

This commit is contained in:
Jonathan Dunn 2024-02-02 10:19:12 -05:00
parent 0b7f7e4fbe
commit cf7341fe2c

View File

@ -21,7 +21,8 @@ if __name__ == "__main__":
'--stream', '-s', help='Use this option if you are piping output to another app. The output will not be streamed', action='store_true')
parser.add_argument(
'--list', '-l', help='List available patterns', action='store_true')
parser.add_argument('--update', '-u', help='Update patterns')
parser.add_argument(
'--update', '-u', help='Update patterns', action='store_true')
parser.add_argument('--pattern', '-p', help='The pattern (prompt) to use')
parser.add_argument('--apikey', '-a', help='Add an OpenAI key')
@ -45,7 +46,6 @@ if __name__ == "__main__":
if args.update:
Update()
print('patterns updated:')
print(os.listdir(config_patterns_directory))
sys.exit()
standalone = Standalone(args, args.pattern)
if args.list: