From d3b66dcbfb6edfac00ef7ed4f7b127cf3aff18c9 Mon Sep 17 00:00:00 2001 From: Taichi Ishitani Date: Wed, 3 Jan 2024 23:19:17 +0900 Subject: [PATCH] update option description (refs: rggen/rggen#180) --- lib/rggen/core/options.rb | 5 ++--- spec/rggen/core/cli_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/rggen/core/options.rb b/lib/rggen/core/options.rb index 853358a..7fcb56a 100644 --- a/lib/rggen/core/options.rb +++ b/lib/rggen/core/options.rb @@ -112,8 +112,7 @@ def define_options(parser) option.long_option '--plugin PLUGIN[:VERSION]' option.default { [] } option.action { |value, options| options[:plugins] << value.split(':', 2) } - option.description 'Load a RgGen plugin ' \ - "(name of plugin/path to 'setup.rb' file)" + option.description 'Load a RgGen plugin (specify plugin name or path)' end Options.add_option(:configuration) do |option| @@ -134,7 +133,7 @@ def define_options(parser) Options.add_option(:load_only) do |option| option.long_option '--load-only' option.default false - option.description 'Load setup, configuration and register map ' \ + option.description 'Load plugins, configuration file and register map ' \ 'files only; write no files' end diff --git a/spec/rggen/core/cli_spec.rb b/spec/rggen/core/cli_spec.rb index 7adaf3e..a159021 100644 --- a/spec/rggen/core/cli_spec.rb +++ b/spec/rggen/core/cli_spec.rb @@ -162,10 +162,10 @@ def create_blank_file(_) <<~'HELP' Usage: rggen [options] register_map_files --no-default-plugins Do not load default plugins - --plugin PLUGIN[:VERSION] Load a RgGen plugin (name of plugin/path to 'setup.rb' file) + --plugin PLUGIN[:VERSION] Load a RgGen plugin (specify plugin name or path) -c, --configuration FILE Specify a configuration file -o, --output DIRECTORY Specify the directory where generated file(s) will be written - --load-only Load setup, configuration and register map files only; write no files + --load-only Load plugins, configuration file and register map files only; write no files --enable WRITER1[,WRITER2,...] Enable only the given writer(s) to write files --print-verbose-info Print verbose information when an error occurs