Skip to content

Commit

Permalink
Merge pull request #193 from AgentOps-AI/fix-help-print
Browse files Browse the repository at this point in the history
fix help print
  • Loading branch information
bboynton97 authored Jan 7, 2025
2 parents f8c1220 + 7f47464 commit dd20883
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions agentstack/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ def main():
pass # Update check already done

# inside project dir commands only
conf.assert_project()

if args.command in ["run", "r"]:
elif args.command in ["run", "r"]:
conf.assert_project()
run_project(command=args.function, debug=args.debug, cli_args=extra_args)
elif args.command in ['generate', 'g']:
conf.assert_project()
if args.generate_command in ['agent', 'a']:
if not args.llm:
configure_default_model()
Expand All @@ -201,6 +201,7 @@ def main():
else:
generate_parser.print_help()
elif args.command in ['export', 'e']:
conf.assert_project()
export_template(args.filename)
else:
parser.print_help()
Expand Down

0 comments on commit dd20883

Please sign in to comment.