Skip to content

more: swap -f and -l short flags to match GNU/util-linux#12337

Open
c-tonneslan wants to merge 1 commit into
uutils:mainfrom
c-tonneslan:fix/more-swap-f-l-flags
Open

more: swap -f and -l short flags to match GNU/util-linux#12337
c-tonneslan wants to merge 1 commit into
uutils:mainfrom
c-tonneslan:fix/more-swap-f-l-flags

Conversation

@c-tonneslan
Copy link
Copy Markdown

The clap definition had -l mapped to --logical and -f mapped to --no-pause, which is the reverse of util-linux more. The help strings were also describing the wrong long option, so the only thing that was internally consistent was the long names.

util-linux more:

-f, --logical   Count logical lines, rather than screen lines
-l, --no-pause  Suppress pausing after form feed (^L)

Swapped the short flags and the en-US/fr-FR help strings. Both options are still no-ops (the struct fields are still prefixed with _ and marked not implemented), but at least the CLI surface is right now and --help doesn't describe the wrong behavior.

For #2320.

The clap definition had -l mapped to --logical and -f mapped to
--no-pause, which is the reverse of how util-linux more works. The
help strings on each long option were also describing the other one,
so the only thing that was internally consistent was the long names.

Real more:

    -f, --logical   Count logical lines, rather than screen lines
    -l, --no-pause  Suppress pausing after form feed (^L)

Fix the short flag assignments and the en-US/fr-FR help strings.
Both options are still no-ops behavior-wise (still marked as
unimplemented), but at least the CLI surface is right.

For uutils#2320.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
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