Skip to content

uucore: indent multiline usage info#4393

Merged
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:uucore_indent_usage_info
Mar 24, 2023
Merged

uucore: indent multiline usage info#4393
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:uucore_indent_usage_info

Conversation

@cakebaker
Copy link
Contributor

This PR indents multiline usage info to align them because clap adds Usage: to the first line. This changes the help output from

Usage: target/debug/coreutils expr [EXPRESSION]
target/debug/coreutils expr [OPTIONS]

to

Usage: target/debug/coreutils expr [EXPRESSION]
       target/debug/coreutils expr [OPTIONS]

@cakebaker cakebaker force-pushed the uucore_indent_usage_info branch from e926c5e to 9990826 Compare February 20, 2023 08:49
@tertsdiepraam
Copy link
Member

I realized we also have to update uudoc to this new format. Could you look into that too?

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

@cakebaker
Copy link
Contributor Author

Yes, I will have a look at it.

@sylvestre sylvestre force-pushed the uucore_indent_usage_info branch from 9990826 to b35c415 Compare March 5, 2023 20:38
@github-actions
Copy link

github-actions bot commented Mar 5, 2023

GNU testsuite comparison:

GNU test failed: tests/misc/timeout. tests/misc/timeout is passing on 'main'. Maybe you have to rebase?

@sylvestre sylvestre merged commit 8e10824 into uutils:main Mar 24, 2023
@cakebaker cakebaker deleted the uucore_indent_usage_info branch March 25, 2023 08:04
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.

3 participants