Skip to content

Always display array arguments in the end when printing command usage#145

Open
gustavothecoder wants to merge 1 commit intodry-rb:mainfrom
gustavothecoder:display-array-argument-in-the-end
Open

Always display array arguments in the end when printing command usage#145
gustavothecoder wants to merge 1 commit intodry-rb:mainfrom
gustavothecoder:display-array-argument-in-the-end

Conversation

@gustavothecoder
Copy link
Contributor

Resolve #144

Using the CLI provided in the issue:

image

Copy link
Contributor

@katafrakt katafrakt left a comment

Choose a reason for hiding this comment

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

I think this is generally good to go. Could you please rebase against main and resolve the conflicts?

# @since 1.3.0
# @api private
# rubocop:disable Metrics/PerceivedComplexity
def self.arguments_sorted_by_usage_order
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't mind a comment explaining the rationale behind arguments getting priority +2 or +1

@katafrakt
Copy link
Contributor

@gustavothecoder I really like your work here ❤️ , so if you don't mind, I will make necessary changes to get it merged in next few days.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optional arguments are always displayed at the end in usage/help

2 participants