troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 64 forks source link

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

Closed hongkongkiwi closed 2 years ago

hongkongkiwi commented 2 years ago

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

troglobit commented 2 years ago

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

Thanks, fixing!