feat(cli): make weight path optional with default location

Change --weight-path argument from required to optional in both serv and run
subcommands. When not specified, it defaults to ~/.aha/{model_id}. Add
get_default_weight_path function to handle the default path resolution.
Update help text to reflect the optional nature of the weight path parameter.
This commit is contained in:
XiaoYang
2026-02-06 17:54:15 +08:00
parent fd3ebc8d1c
commit ca16051065
2 changed files with 28 additions and 8 deletions
+1
View File
@@ -33,6 +33,7 @@ lint:
help:
@echo "Available commands:"
@echo " build - Build the project"
@echo " build_mac - Build the project for macOS"
@echo " test - Run tests"
@echo " clean - Clean the project"
@echo " fmt - Format the code"