forked from p04798526/LLaMA-Factory-Mirror
Merge pull request #4409 from kno10/patch-2
Print help if no arguments given
This commit is contained in:
commit
3bed18c644
|
@ -74,7 +74,7 @@ class Command(str, Enum):
|
|||
|
||||
|
||||
def main():
|
||||
command = sys.argv.pop(1)
|
||||
command = sys.argv.pop(1) if len(sys.argv) != 1 else Command.HELP
|
||||
if command == Command.API:
|
||||
run_api()
|
||||
elif command == Command.CHAT:
|
||||
|
|
Loading…
Reference in New Issue