fix: default to 'serve' command if no subcommand is provided in CLI

This commit is contained in:
Kirill Igumenshchev (aider) 2025-05-18 17:40:31 -07:00
parent 24a350bc71
commit b99757ec03

View file

@ -90,4 +90,8 @@ class HumorEnv(BaseEnv):
if __name__ == "__main__":
import sys
# default to 'serve' if no subcommand provided
if len(sys.argv) == 1:
sys.argv.append("serve")
HumorEnv.cli()