Skip to content

Commit

Permalink
Switch argument order for run subcommand
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Stone <[email protected]>
  • Loading branch information
rhjostone committed Jan 31, 2025
1 parent 93d998a commit 7c81174
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ramalama/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,6 @@ def _run(parser):
def run_parser(subparsers):
parser = subparsers.add_parser("run", help="run specified AI Model as a chatbot")
_run(parser)
parser.add_argument("MODEL") # positional argument
parser.add_argument(
"ARGS", nargs="*", help="Overrides the default prompt, and the output is returned without entering the chatbot"
)
# Disable network access by default, and give the option to pass any supported network mode into
# podman if needed:
# https://docs.podman.io/en/latest/markdown/podman-run.1.html#network-mode-net
Expand All @@ -743,6 +739,10 @@ def run_parser(subparsers):
default="none",
help="Set the network mode for the container.",
)
parser.add_argument("MODEL") # positional argument
parser.add_argument(
"ARGS", nargs="*", help="Overrides the default prompt, and the output is returned without entering the chatbot"
)
parser.set_defaults(func=run_cli)


Expand Down

0 comments on commit 7c81174

Please sign in to comment.