Merge pull request #26 from jmorganca/fix-run-argparse
fix run arg parser
This commit is contained in:
commit
3db89d2125
1 changed files with 4 additions and 4 deletions
|
@ -33,10 +33,10 @@ def main():
|
||||||
pull_parser.add_argument("model")
|
pull_parser.add_argument("model")
|
||||||
pull_parser.set_defaults(fn=pull)
|
pull_parser.set_defaults(fn=pull)
|
||||||
|
|
||||||
pull_parser = subparsers.add_parser("run")
|
run_parser = subparsers.add_parser("run")
|
||||||
pull_parser.add_argument("model")
|
run_parser.add_argument("model")
|
||||||
pull_parser.add_argument("prompt", nargs="?")
|
run_parser.add_argument("prompt", nargs="?")
|
||||||
pull_parser.set_defaults(fn=run)
|
run_parser.set_defaults(fn=run)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
args = vars(args)
|
args = vars(args)
|
||||||
|
|
Loading…
Reference in a new issue