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

fixes frozen string issue on old rb2.7, removed useless code #153

Merged
merged 1 commit into from
May 2, 2024

Conversation

nanobowers
Copy link
Collaborator

Merge of did-you-mean branch and frozen-string literal branch caused this issue, as the DYM branch did not fully abide by frozen-string literal rules.

Funny enough, behavior of the frozen-string-literal comment is different on rb2.7 and 3.x
Fixes fails mentioned #152

@miq-bot add-label bug
@miq-bot add-reviewer @Fryguy

@@ -248,7 +248,6 @@ def educate_on_error

def handle_unknown_argument(arg, candidates, suggestions)
errstring = "unknown argument '#{arg}'"
errstring += " for command '#{subcommand_name}'" if self.respond_to?(:subcommand_name)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was a cut and paste error from optimist-xl, is unneeded and shouldve been removed.

@Fryguy Fryguy merged commit a02f7ec into ManageIQ:master May 2, 2024
11 of 12 checks passed
@Fryguy Fryguy added the bug label May 2, 2024
@Fryguy Fryguy self-assigned this May 2, 2024
Fryguy added a commit that referenced this pull request Nov 11, 2024
Added:
- Align the short and long forms into their own columns in the help output (#145 - thanks akhoury6)
- Add support for DidYouMean when long options are spelled incorrectly (#150 - thanks nanobowers)
- Using `permitted:` restricts the allowed values that a end-user inputs to a pre-defined list (#147 - thanks akhoury6)
- Add exact_match to settings, defaulting to inexact matching (#154 - thanks nanobowers)
- Add setting to disable implicit short options (#155 - thanks nanobowers)
- Add alt longname and multiple char support (#151 - thanks nanobowers)
- Permitted regexp/range support (#158, #159- thanks nanobowers)
- Add some examples (#161 - thanks nanobowers)

Changed:
- Enable frozen_string_literal for future-ruby support (#149, #153  - thanks nanobowers)
- Refactor constraints (#156 - thanks nanobowers)
- Fix assert_raises to assert_raises_errmatch (#160 - thanks nanobowers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants