storagetm: make the synopsis more accurate
parse_argv() requires at least one DEVICE unless --all is given, and refuses DEVICE arguments when --all is given, so "[DEVICE…]" described neither mode correctly. Spell out the three modes as separate synopsis lines, like pcrextend and inhibit do, and update the man page to match.
This commit is contained in:
@@ -49,7 +49,10 @@ STATIC_DESTRUCTOR_REGISTER(arg_nqn, freep);
|
||||
COMMAND(
|
||||
"systemd-storagetm\0",
|
||||
"Expose a block device or regular file as NVMe-TCP volume.",
|
||||
.argspec = "[DEVICE…]\0",
|
||||
.argspec =
|
||||
"DEVICE…\0"
|
||||
"--all\0"
|
||||
"--list-devices\0",
|
||||
.man_pages = "systemd-storagetm.8\0",
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user