zpool/zfs: restore -V & --version options
commitca0141f325ec706d38a06f9aeb8e5eb6c6a8d09a
authorRob Norris <robn@despairlabs.com>
Mon, 7 Oct 2024 20:09:08 +0000 (8 07:09 +1100)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 20:09:08 +0000 (7 13:09 -0700)
treef1a9d7c23881c086296a9c5f1dfcdf83939697ca
parentab777f436ce228559f3c2480ebe8a6b5ab888c43
zpool/zfs: restore -V & --version options

The -j option added a round of getopt, which didn't know the magic
version flags. So just bypass the whole thing and go straight to the
human output function for the special case.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16615
Closes #16617
cmd/zfs/zfs_main.c
cmd/zpool/zpool_main.c