Skip to content

bin/dev --verbose option causes error despite being listed in help #1849

@justin808

Description

@justin808

Description

The --verbose option is documented in the bin/dev --help output but causes an error when used.

Steps to Reproduce

  1. Run bin/dev --help - it shows:

    ⚙️  OPTIONS:
      --route ROUTE        Specify route to display in URLs (default: root)
      --rails-env ENV      Override RAILS_ENV for assets:precompile step only (prod mode only)
      --verbose, -v        Enable verbose output for pack generation
    
  2. Try to use the option: bin/dev --verbose

Expected Behavior

The command should run with verbose output enabled.

Actual Behavior

/Users/justin/.local/share/mise/installs/ruby/3.4.3/lib/ruby/gems/3.4.0/gems/react_on_rails-16.1.1/lib/react_on_rails/dev/server_manager.rb:139:in 'ReactOnRails::Dev::ServerManager.run_from_command_line': invalid option: --verbose (OptionParser::InvalidOption)
	from bin/dev:34:in '<main>'

Environment

  • react_on_rails version: 16.1.1
  • Ruby version: 3.4.3

Suggested Fix

Either:

  1. Implement the --verbose option in the ServerManager's OptionParser, or
  2. Remove it from the help documentation if it's not intended to be supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions