Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update option description #138

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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