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

shuf: Accept multiple occurrences of head count argument #3328

Closed
ghost opened this issue Mar 28, 2022 · 0 comments · Fixed by #3329
Closed

shuf: Accept multiple occurrences of head count argument #3328

ghost opened this issue Mar 28, 2022 · 0 comments · Fixed by #3329

Comments

@ghost
Copy link

ghost commented Mar 28, 2022

GNU accepts multiple occurrences of head count argument and chooses the min value among them.

uutils does not accept multiple occurrences of head count argument.

GNU

shuf -i10-200 -n5 -n10
162
144
165
96
62

uutils

./target/debug/shuf -i10-200 -n5 -n10
error: The argument '--head-count <COUNT>' was provided more than once, but cannot be used multiple times

USAGE:
    ./target/debug/shuf [OPTION]... [FILE]
    ./target/debug/shuf -e [OPTION]... [ARG]...
    ./target/debug/shuf -i LO-HI [OPTION]...

For more information try --help

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 a pull request may close this issue.

0 participants