diff options
author | David Teigland <teigland@redhat.com> | 2017-02-22 15:20:44 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-02-22 15:20:44 -0600 |
commit | 1eb1869626cbdacbeca037fbd81d01756f2faa76 (patch) | |
tree | 6a481133837a130d91e5f972c5a4eefa8e2ff1dd | |
parent | aa72caca5a19c67caffefc3f967af630b93ee2f0 (diff) | |
download | lvm2-1eb1869626cbdacbeca037fbd81d01756f2faa76.tar.gz |
man: improve writemostly PV arg
-rw-r--r-- | tools/command.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/tools/command.c b/tools/command.c index 0d40af686..d170eecd3 100644 --- a/tools/command.c +++ b/tools/command.c @@ -1785,16 +1785,6 @@ static void print_val_man(const char *str) int line_argc; int i; - if (!strcmp(str, "Number") || - !strcmp(str, "String") || - !strncmp(str, "VG", 2) || - !strncmp(str, "LV", 2) || - !strncmp(str, "PV", 2) || - !strcmp(str, "Tag")) { - printf("\\fI%s\\fP", str); - return; - } - /* * The suffix [k|unit] is just printed in plain text. * Doing bold k and underlined unit creates a lot of @@ -1823,6 +1813,11 @@ static void print_val_man(const char *str) return; } + if (!strcmp(str, "PV[:t|n|y]")) { + printf("\\fIPV\\fP[\\fB:t\\fP|\\fBn\\fP|\\fBy\\fP]"); + return; + } + /* * I think this bit is almost unnecessary with the specific * ones checked above. @@ -1841,6 +1836,16 @@ static void print_val_man(const char *str) return; } + if (!strcmp(str, "Number") || + !strcmp(str, "String") || + !strncmp(str, "VG", 2) || + !strncmp(str, "LV", 2) || + !strncmp(str, "PV", 2) || + !strcmp(str, "Tag")) { + printf("\\fI%s\\fP", str); + return; + } + if (strchr(str, '|')) { int len = strlen(str); line = dm_strdup(str); |