mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
commands: recognize lvm command -?
and interpret it as lvm command -h
This commit is contained in:
parent
8bc8965847
commit
955083e625
@ -3465,9 +3465,11 @@ int lvm2_main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
/* turn command -? into command -h */
|
||||
/* turn command -? into command -h and lvm command -? into lvm command -h */
|
||||
if (alias && (argc > 1) && !strcmp(argv[1], "-?"))
|
||||
argv[1] = (char *)"-h";
|
||||
if (!alias && (argc > 2) && !strcmp(argv[2], "-?"))
|
||||
argv[2] = (char *)"-h";
|
||||
|
||||
if (!(cmd = init_lvm(0, 0)))
|
||||
return EINIT_FAILED;
|
||||
|
Loading…
Reference in New Issue
Block a user