fixed --update
This commit is contained in:
parent
0b7f7e4fbe
commit
cf7341fe2c
@ -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')
|
'--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(
|
parser.add_argument(
|
||||||
'--list', '-l', help='List available patterns', action='store_true')
|
'--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('--pattern', '-p', help='The pattern (prompt) to use')
|
||||||
parser.add_argument('--apikey', '-a', help='Add an OpenAI key')
|
parser.add_argument('--apikey', '-a', help='Add an OpenAI key')
|
||||||
|
|
||||||
@ -45,7 +46,6 @@ if __name__ == "__main__":
|
|||||||
if args.update:
|
if args.update:
|
||||||
Update()
|
Update()
|
||||||
print('patterns updated:')
|
print('patterns updated:')
|
||||||
print(os.listdir(config_patterns_directory))
|
|
||||||
sys.exit()
|
sys.exit()
|
||||||
standalone = Standalone(args, args.pattern)
|
standalone = Standalone(args, args.pattern)
|
||||||
if args.list:
|
if args.list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user