koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

Add missing `--help` for CLI options #176

Open bczhc opened 10 months ago

bczhc commented 10 months ago

Some subcommands are missing --help options. This PR adds them.

The old behavior:

~ ❯ bcachefs device online --help                                                                                     ✘ INT 16:51:31
bcachefs: invalid option -- '-'
bcachefs device online - readd a device to a running filesystem
Usage: bcachefs device online [OPTION]... device

Options:
  -h, --help                  Display this help and exit

Report bugs to <linux-bcachefs@vger.kernel.org>
~ ❯ bcachefs device offline --help                                                                                          16:51:36
bcachefs: unrecognized option '--help'
Please supply a device
koverstreet commented 10 months ago

Could you squash these?