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
|
from llama_cpp.server.app import create_app, Settings
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser(
|
||||||
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
||||||
|
)
|
||||||
for name, field in Settings.__fields__.items():
|
for name, field in Settings.__fields__.items():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
f"--{name}",
|
f"--{name}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue