Skip to content

Commit

Permalink
update option description (#139, rggen/rggen#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani authored Jan 3, 2024
1 parent 593cdf7 commit fd05b28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rggen/core/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def define_options(parser)
option.long_option '--no-default-plugins'
option.default false
option.action { |_, options| options[:no_default_plugins] = true }
option.description 'Do not load default plugins'
option.description 'Not load default plugins'
end

Options.add_option(:plugins) do |option|
Expand Down Expand Up @@ -175,7 +175,7 @@ def option.merge_enabled_writers(value, options, option_name)
option.action do |_value, options|
options[:runner] = VersionPrinter.new(true)
end
option.description 'Load a setup Ruby file and display verbose version'
option.description 'Display verbose version'
end

Options.add_option(:help) do |option|
Expand Down
4 changes: 2 additions & 2 deletions spec/rggen/core/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def create_blank_file(_)
let(:help_message) do
<<~'HELP'
Usage: rggen [options] register_map_files
--no-default-plugins Do not load default plugins
--no-default-plugins Not load default plugins
--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
Expand All @@ -171,7 +171,7 @@ def create_blank_file(_)
--print-verbose-info Print verbose information when an error occurs
--print-backtrace Print backtrace when an error occurs
-v, --version Display version
--verbose-version Load a setup Ruby file and display verbose version
--verbose-version Display verbose version
-h, --help Display this message
HELP
end
Expand Down

0 comments on commit fd05b28

Please sign in to comment.