From 11a70204ca25c4f082514f2ee4a6d7dec7540c2a Mon Sep 17 00:00:00 2001 From: Hiroshi IKEGAMI Date: Sun, 3 Nov 2024 13:27:55 +0900 Subject: [PATCH] Cosmetic Change help message. --- README.md | 2 +- internal/commandline/help.txt | 23 +++++++++++------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c124d72..00196d4 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ Environment | Description `KIRKE_DEFAULT_ROOT_NAME` | Specified default used ``. | `AutoGenerated` `KIRKE_DEFAULT_NULL_AS` | Specified default used ``. | `interface{}` `KIRKE_DEFAULT_OUTPUT_MODE` | Specified the default used output mode. Only `outline` and `inline` are valid. | `outline` -`KIRKE_DEFAULT_AUTO_PAGER_MODE` | Specified default `` option. Only `on` and `off` are valid.(default: "on") | `on` `KIRKE_DEFAULT_POINTER_STRUCT_MODE` | Specified default `` option. Only `on` and `off` are valid.(default: "off") | `off` +`KIRKE_DEFAULT_AUTO_PAGER_MODE` | Specified default `` option. Only `on` and `off` are valid.(default: "on") | `on` Examples -------- diff --git a/internal/commandline/help.txt b/internal/commandline/help.txt index 3ffe742..f0626ae 100644 --- a/internal/commandline/help.txt +++ b/internal/commandline/help.txt @@ -14,24 +14,23 @@ Options: -j, --json Specify the json string -p, --pipe Receive JSON from a pipe instead of a direct argument above all else. (default: false) --pointer, --pointer-struct Defines struct and array fields as pointers. Only valid for with --outline. (default: off) - --pager --auto-pager Use a pager even if the output size is larger than the terminal. (default: "on") + --pager --auto-pager Use a pager even if the output size is larger than the terminal. (default: "on") -o, --outline Specify output mode. Defines struct and array fields as outline struct. (default: true) -i, --inline Specify output mode. Defines struct and array fields as inline struct. (default: false) Arguments: - Used as the name of the root struct in the output. Automatically converted to camel case. - A file containing a JSON string. It will be read even if the extension is not .json. - Direct JSON string input. - The type name used to replace `null` type from json. - + Used as the name of the root struct in the output. Automatically converted to camel case. + A file containing a JSON string. It will be read even if the extension is not .json. + Direct JSON string input. + The type name used to replace `null` type from json. Environments: - KIRKE_DEFAULT_ROOT_NAME Specified default used . (default: AutoGenerated) - KIRKE_DEFAULT_NULL_AS Specified default used . (default: interface{}) - KIRKE_DEFAULT_OUTPUT_MODE Specified the default used output mode. Only `outline` and `inline` are valid. Used if the `--inline` or `--outline` option is not specified.(default: outline) - KIRKE_DEFAULT_AUTO_PAGER_MODE Specified default `<--auto-mode>` switch. (default: "on") - KIRKE_DEFAULT_POINTER_STRUCT_MODE Specified default `<--pointer-struct>` switch. (default: "off") - + KIRKE_DEFAULT_ROOT_NAME Specified default used . (default: AutoGenerated) + KIRKE_DEFAULT_NULL_AS Specified default used . (default: interface{}) + KIRKE_DEFAULT_OUTPUT_MODE Specified the default used output mode. Only `outline` and `inline` are valid. + Used if the `--inline` or `--outline` option is not specified.(default: outline) + KIRKE_DEFAULT_POINTER_STRUCT_MODE Specified default `<--pointer-struct>` switch. (default: "off") + KIRKE_DEFAULT_AUTO_PAGER_MODE Specified default `<--auto-mode>` switch. (default: "on") Examples: ex1)