mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
Print help if no arguments given
Former-commit-id: 7d70ba7fb86844d0fa307889c6d671939db1cce4
This commit is contained in:
parent
0844750bb9
commit
cf23a279fd
@ -74,7 +74,7 @@ class Command(str, Enum):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
command = sys.argv.pop(1)
|
command = sys.argv.pop(1) if len(sys.argv) > 0 else Command.HELP
|
||||||
if command == Command.API:
|
if command == Command.API:
|
||||||
run_api()
|
run_api()
|
||||||
elif command == Command.CHAT:
|
elif command == Command.CHAT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user