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

Display better error message if no prompt mode is given #910

Open
cobrexus opened this issue Mar 24, 2024 · 0 comments
Open

Display better error message if no prompt mode is given #910

cobrexus opened this issue Mar 24, 2024 · 0 comments

Comments

@cobrexus
Copy link

cobrexus commented Mar 24, 2024

Description

aryanbeezadhur@Aryans-MacBook-Pro ~ % irb --prompt
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/irb/init.rb:340:in `parse_opts': undefined method `upcase' for nil (NoMethodError)

        prompt_mode = opt.upcase.tr("-", "_").intern
                         ^^^^^^^
	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/irb/init.rb:48:in `setup'
	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/irb.rb:896:in `start'
	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/irb-1.11.0/exe/irb:9:in `<top (required)>'
	from /opt/homebrew/opt/ruby/bin/irb:25:in `load'
	from /opt/homebrew/opt/ruby/bin/irb:25:in `<main>'

Instead maybe list all prompt modes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant