Skip to content

Commit dd20883

Browse files
authored
Merge pull request #193 from AgentOps-AI/fix-help-print
fix help print
2 parents f8c1220 + 7f47464 commit dd20883

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

agentstack/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ def main():
187187
pass # Update check already done
188188

189189
# inside project dir commands only
190-
conf.assert_project()
191-
192-
if args.command in ["run", "r"]:
190+
elif args.command in ["run", "r"]:
191+
conf.assert_project()
193192
run_project(command=args.function, debug=args.debug, cli_args=extra_args)
194193
elif args.command in ['generate', 'g']:
194+
conf.assert_project()
195195
if args.generate_command in ['agent', 'a']:
196196
if not args.llm:
197197
configure_default_model()
@@ -201,6 +201,7 @@ def main():
201201
else:
202202
generate_parser.print_help()
203203
elif args.command in ['export', 'e']:
204+
conf.assert_project()
204205
export_template(args.filename)
205206
else:
206207
parser.print_help()

0 commit comments

Comments
 (0)