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

numfmt: remove duplicate info from help output #5034

Merged

Conversation

cakebaker
Copy link
Contributor

clap automatically shows a list of possible values for an option in the help output, so it is unnecessary that we list the same values again. This PR removes this duplicate information.

// before the change
--round <METHOD>     use METHOD for rounding when scaling; METHOD can be: up,down, from-zero, towards-zero, nearest [default: from-zero] [possible values:
                     up, down, from-zero, towards-zero, nearest]

// after the change
--round <METHOD>     use METHOD for rounding when scaling [default: from-zero] [possible values: up, down, from-zero, towards-zero, nearest]

@sylvestre sylvestre merged commit 4cd4df2 into uutils:main Jul 4, 2023
@cakebaker cakebaker deleted the numfmt_possible_values_are_shown_twice branch July 4, 2023 08:55
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.

2 participants