diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zpool/zpool_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 8a0fa2c2b..77c68d74d 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -266,7 +266,7 @@ get_usage(zpool_help_t idx) { case HELP_EVENTS: return (gettext("\tevents [-vHfc]\n")); case HELP_GET: - return (gettext("\tget [-p] <\"all\" | property[,...]> " + return (gettext("\tget [-pH] <\"all\" | property[,...]> " "<pool> ...\n")); case HELP_SET: return (gettext("\tset <property=value> <pool> \n")); @@ -5617,12 +5617,16 @@ zpool_do_get(int argc, char **argv) int c, ret; /* check options */ - while ((c = getopt(argc, argv, "p")) != -1) { + while ((c = getopt(argc, argv, "pH")) != -1) { switch (c) { case 'p': cb.cb_literal = B_TRUE; break; + case 'H': + cb.cb_scripted = B_TRUE; + break; + case '?': (void) fprintf(stderr, gettext("invalid option '%c'\n"), optopt); |