aboutsummaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
authorGravatar SwiftyOS <craigswift13@gmail.com> 2023-10-08 11:39:38 -0700
committerGravatar SwiftyOS <craigswift13@gmail.com> 2023-10-08 11:39:38 -0700
commitb52aba4ef545add8fb6c7f8009615cb38e24db80 (patch)
tree290d335d5a8ebe4cfed904e72391b4bee72e980f /cli.py
parentAutoGPT/plugins: Support full parameter defs for plugin commands (diff)
downloadAuto-GPT-b52aba4ef545add8fb6c7f8009615cb38e24db80.tar.gz
Auto-GPT-b52aba4ef545add8fb6c7f8009615cb38e24db80.tar.bz2
Auto-GPT-b52aba4ef545add8fb6c7f8009615cb38e24db80.zip
inverted setup param
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli.py b/cli.py
index 27f336404..0353efe40 100644
--- a/cli.py
+++ b/cli.py
@@ -258,8 +258,8 @@ def create(agent_name):
@agent.command()
@click.argument("agent_name")
-@click.option("--setup", is_flag=True, help="Rebuilds your poetry env")
-def start(agent_name, setup):
+@click.option("--no-setup", is_flag=True, help="Rebuilds your poetry env")
+def start(agent_name, no_setup):
"""Start agent command"""
import os
import subprocess
@@ -270,7 +270,7 @@ def start(agent_name, setup):
run_bench_command = os.path.join(agent_dir, "run_benchmark")
if os.path.exists(agent_dir) and os.path.isfile(run_command) and os.path.isfile(run_bench_command):
os.chdir(agent_dir)
- if setup:
+ if not no_setup:
setup_process = subprocess.Popen(["./setup"], cwd=agent_dir)
setup_process.wait()
subprocess.Popen(["./run_benchmark", "serve"], cwd=agent_dir)