mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Show default value when --help is called
This commit is contained in:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user