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

/sbin/shutdown --help reboots instead of displaying help (oops) #294

Closed
hongkongkiwi opened this issue Jun 29, 2022 · 1 comment
Closed
Labels
Milestone

Comments

@hongkongkiwi
Copy link
Contributor

hongkongkiwi commented Jun 29, 2022

Shutdown doesn't seem to read the --help command

See expected:
/sbin/shutdown -t

/sbin/shutdown: invalid option -- t
Usage: shutdown [OPTIONS]

Options:
      --help      This help text
  -f, --force     Force unsafe power-off now, do not contact the init system.
      --halt      Halt system, regardless of how the command is called.
  -h              Halt or power off after shutdown.
  -P, --poweroff  Power-off system, regardless of how the command is called.
  -r, --reboot    Reboot system, regardless of how the command is called.

/sbin/shutdown --help

system reboots

@hongkongkiwi hongkongkiwi changed the title /sbin/shutdown --help reboots! /sbin/shutdown --help reboots instead of displaying help (oops) Jun 29, 2022
@troglobit
Copy link
Owner

Oups indeed! Turns out --help had -h as short option ... :-/

Thanks, fixing!

@troglobit troglobit added this to the 4.4 milestone Jun 29, 2022
@troglobit troglobit added the bug label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants