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

fix help message in chgrp #4824

Merged
merged 1 commit into from
May 4, 2023
Merged

Conversation

m11o
Copy link
Contributor

@m11o m11o commented May 3, 2023

issue: #4368

This PR contains bellow contents.

  • add command name in usage block in chgrp.md
  • use const instead of static

chgrp --help outputs follow.

before

$ ./target/debug/chgrp --help
Change the group of each FILE to GROUP.

Usage: ./target/debug/chgrp [OPTION]... GROUP FILE...
       ./target/debug/chgrp --reference=RFILE FILE...

Arguments:
  <GROUP>
  <FILE>...

Options:
      --help               Print help information.
  -c, --changes            like verbose but report only when a change is made
  -f, --silent
      --quiet              suppress most error messages
  -v, --verbose            output a diagnostic for every file processed
      --dereference
  -h, --no-dereference     affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)
      --preserve-root      fail to operate recursively on '/'
      --no-preserve-root   do not treat '/' specially (the default)
      --reference <RFILE>  use RFILE's group rather than specifying GROUP values
  -R, --recursive          operate on files and directories recursively
  -H                       if a command line argument is a symbolic link to a directory, traverse it
  -P                       do not traverse any symbolic links (default)
  -L                       traverse every symbolic link to a directory encountered
  -V, --version            Print version

after

$ ./target/debug/chgrp --help
Change the group of each FILE to GROUP.

Usage: ./target/debug/chgrp [OPTION]... GROUP FILE...
       ./target/debug/chgrp [OPTION]... --reference=RFILE FILE...

Arguments:
  <GROUP>
  <FILE>...

Options:
      --help               Print help information.
  -c, --changes            like verbose but report only when a change is made
  -f, --silent
      --quiet              suppress most error messages
  -v, --verbose            output a diagnostic for every file processed
      --dereference
  -h, --no-dereference     affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)
      --preserve-root      fail to operate recursively on '/'
      --no-preserve-root   do not treat '/' specially (the default)
      --reference <RFILE>  use RFILE's group rather than specifying GROUP values
  -R, --recursive          operate on files and directories recursively
  -H                       if a command line argument is a symbolic link to a directory, traverse it
  -P                       do not traverse any symbolic links (default)
  -L                       traverse every symbolic link to a directory encountered
  -V, --version            Print version

@github-actions
Copy link

github-actions bot commented May 4, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/tail-2/inotify-dir-recreate is no longer failing!

@cakebaker cakebaker merged commit 249b80a into uutils:main May 4, 2023
@cakebaker
Copy link
Contributor

Thanks!

@m11o m11o deleted the fix-chgrp-markdown-file branch May 4, 2023 13:57
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