Skip to content

Commit 39b468a

Browse files
committed
common : streamline the formatting of help
- Separate alternative parameters by a comma - Do not indent `--version` differently
1 parent 326b418 commit 39b468a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/common.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
818818
printf("\n");
819819
printf("options:\n");
820820
printf(" -h, --help show this help message and exit\n");
821-
printf(" --version show version and build info\n");
821+
printf(" --version show version and build info\n");
822822
printf(" -i, --interactive run in interactive mode\n");
823823
printf(" --interactive-first run in interactive mode and wait for input right away\n");
824824
printf(" -ins, --instruct run in instruction mode (use with Alpaca models)\n");
@@ -915,7 +915,7 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
915915
printf(" number of layers to store in VRAM\n");
916916
printf(" -ngld N, --n-gpu-layers-draft N\n");
917917
printf(" number of layers to store in VRAM for the draft model\n");
918-
printf(" -ts SPLIT --tensor-split SPLIT\n");
918+
printf(" -ts SPLIT, --tensor-split SPLIT\n");
919919
printf(" how to split tensors across multiple GPUs, comma-separated list of proportions, e.g. 3,1\n");
920920
printf(" -mg i, --main-gpu i the GPU to use for scratch and small tensors\n");
921921
#ifdef GGML_USE_CUBLAS
@@ -950,7 +950,7 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
950950
printf(" --override-kv KEY=TYPE:VALUE\n");
951951
printf(" advanced option to override model metadata by key. may be specified multiple times.\n");
952952
printf(" types: int, float, bool. example: --override-kv tokenizer.ggml.add_bos_token=bool:false\n");
953-
printf(" -stc N --print-token-count N\n");
953+
printf(" -stc N, --print-token-count N\n");
954954
printf(" print token count every N tokens (default: %d)\n", params.n_print);
955955
printf("\n");
956956
#ifndef LOG_DISABLE_LOGS

0 commit comments

Comments
 (0)