Merge pull request #26 from jmorganca/fix-run-argparse

fix run arg parser
This commit is contained in:
Michael Yang 2023-06-29 16:33:54 -07:00 committed by GitHub
commit 3db89d2125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,10 @@ def main():
pull_parser.add_argument("model")
pull_parser.set_defaults(fn=pull)
pull_parser = subparsers.add_parser("run")
pull_parser.add_argument("model")
pull_parser.add_argument("prompt", nargs="?")
pull_parser.set_defaults(fn=run)
run_parser = subparsers.add_parser("run")
run_parser.add_argument("model")
run_parser.add_argument("prompt", nargs="?")
run_parser.set_defaults(fn=run)
args = parser.parse_args()
args = vars(args)