Skip to content

Commit

Permalink
update option description
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Jan 3, 2024
1 parent 60219e6 commit d3b66dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/rggen/core/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -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

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 @@ -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
Expand Down

0 comments on commit d3b66dc

Please sign in to comment.