From 9b7df46a0910c10a4599909a05e97ed3cb37bcab Mon Sep 17 00:00:00 2001 From: xaxys Date: Mon, 6 May 2024 00:34:12 +0800 Subject: [PATCH] Update option usage Signed-off-by: xaxys --- README.md | 2 +- README_cn.md | 2 +- main.go | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fcdad70..9c917dd 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ bubbler [options] - `-single`: Generate Single File (Combine all definitions into one file, instead of one generated file per source file) - `-minimal`: Generate Minimal Code (Usually without default getter/setter methods) - `-decnum`: Force Generate Decimal Format for Constant Value (Translate `0xFF` to `255`, `0b1111` to `15`, etc.) -- `-signext`: Sign Extension Method used for Integer Field (Options: `shift`, `arith`) +- `-signext `: Sign Extension Method used for Integer Field (Options: `shift`, `arith`) ### Examples diff --git a/README_cn.md b/README_cn.md index 95a6351..b759de3 100644 --- a/README_cn.md +++ b/README_cn.md @@ -32,7 +32,7 @@ bubbler [options] - `-single`: 生成单个文件(将所有定义合并到一个文件中,而不是每个源文件生成一个文件) - `-minimal`: 生成最小代码(通常不包含默认的getter/setter方法) - `-decnum`: 强制生成十进制格式的常量值(将 `0xFF` 翻译为 `255`, `0b1111` 翻译为 `15` 等) -- `-signext`: 用于整数字段的符号扩展方法(选项: `shift`, `arith`) +- `-signext `: 用于整数字段的符号扩展方法(选项: `shift`, `arith`) ### 示例 diff --git a/main.go b/main.go index e24286c..fc6df90 100644 --- a/main.go +++ b/main.go @@ -39,13 +39,13 @@ Usage: bubbler [options] Options: - -t Target Language - -o Output Path - -inner Generate Inner Class - -single Generate Single File - -minimal Generate Minimal Code - -decnum Force Generate Decimal Format for Constant Value - -signext Sign Extension Method (shift, arith) + -t Target Language + -o Output Path + -inner Generate Inner Class + -single Generate Single File + -minimal Generate Minimal Code + -decnum Force Generate Decimal Format for Constant Value + -signext Sign Extension Method (shift, arith) Targets: {{ range .Generators }} {{ . }} @@ -53,7 +53,7 @@ Targets: Examples: bubbler -t c -minimal -o output/ example.bb bubbler -t c -single -o gen.hpp example.bb - bubbler -t py -decnum -signext=arith -o output example.bb + bubbler -t py -decnum -signext arith -o output example.bb For more information, please visit: https://github.com/xaxys/bubbler {{ end }}