Show default value when --help is called
This commit is contained in:
parent
022e9ebcb8
commit
0d6c60097a
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ import uvicorn
|
|||
from llama_cpp.server.app import create_app, Settings
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
||||
)
|
||||
for name, field in Settings.__fields__.items():
|
||||
parser.add_argument(
|
||||
f"--{name}",
|
||||
|
|
Loading…
Reference in a new issue