zpool/zfs: allow --json wherever -j is allowed
commit666903610d08611aefdde043b731abfa5dbb21a1
authorRob Norris <rob.norris@klarasystems.com>
Fri, 11 Oct 2024 16:37:57 +0000 (12 03:37 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 11 Oct 2024 23:21:25 +0000 (11 16:21 -0700)
tree76fcd436ee5e230f4b1adfa3a4b2eaa0ab4dbf30
parent26ecd8b993816dcc4629e9a01124d487d5047eeb
zpool/zfs: allow --json wherever -j is allowed

Mostly so that with the JSON formatting options are also used, they all
look the same. To my eye, `-j --json-flat-vdevs` suggests that they are
different or unrelated, while `--json --json-flat-vdevs` invites no
further questions.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16632
cmd/zfs/zfs_main.c
cmd/zpool/zpool_main.c
man/man8/zfs-list.8
man/man8/zfs-mount.8
man/man8/zfs-program.8
man/man8/zfs-set.8
man/man8/zpool-get.8
man/man8/zpool-list.8
man/man8/zpool-status.8
tests/zfs-tests/tests/functional/cli_root/json/json_sanity.ksh