Skip to content

nl: show allowed range when -i/-l negative_num is given - #14319

Closed
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:nl-clap
Closed

nl: show allowed range when -i/-l negative_num is given#14319
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:nl-clap

Conversation

@oech3

@oech3 oech3 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Closes #14314

We don't need to manually parse it just for showing valid range:

> target/debug/nl -i -5 f
error: invalid value '-5' for '--line-increment <NUMBER>': -5 is not in 0..9223372036854775807

For more information, try '--help'.

@sylvestre
sylvestre enabled auto-merge (rebase) August 31, 2026 07:11
@oech3

oech3 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

GNU actually accepts negative value.

@oech3 oech3 closed this Aug 31, 2026
auto-merge was automatically disabled August 31, 2026 07:59

Pull request was closed

@oech3
oech3 deleted the nl-clap branch August 31, 2026 07:59
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/nl/nl. tests/nl/nl is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/date/resolution (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/date/date-locale-hour (passes in this run but fails in the 'main' branch)
Skip an intermittent issue tests/pr/bounded-memory (was skipped on 'main', now failing)

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.

1 participant