From 9f4451193b8db4bd9c894248f50da9319704293e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 5 Mar 2016 21:02:30 +0100 Subject: [PATCH] lvconvert: update --help Use <> around user entered option parameters to make it visually different (just like we use Italic style in man page). TODO: In the future we should consistently provide such notation and possibly generate it automagically from some internal data structures. Preferably for man pages as well so we report actual set of supported options. --- tools/commands.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tools/commands.h b/tools/commands.h index f676bbe30..aba5b40b9 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -197,28 +197,28 @@ xx(lvchange, test_ARG, writebehind_ARG, writemostly_ARG, zero_ARG) #define COMMON_OPTS \ - "\t[--commandprofile ProfileName] [-d|--debug] [-h|-?|--help]\n" \ + "\t[--commandprofile ] [-d|--debug] [-h|-?|--help]\n" \ "\t[--noudevsync] [-t|--test] [-v|--verbose] [--version] [-y|--yes]\n" xx(lvconvert, "Change logical volume layout", 0, "lvconvert " - "[-m|--mirrors Mirrors [{--mirrorlog {disk|core|mirrored}|--corelog}]]\n" - "\t[--type SegmentType]\n" + "[-m|--mirrors [--mirrorlog {disk|core|mirrored}|--corelog]]\n" + "\t[--type ]\n" "\t[--repair [--use-policies]]\n" "\t[--replace PhysicalVolume]\n" - "\t[-R|--regionsize MirrorLogRegionSize]\n" - "\t[--alloc AllocationPolicy]\n" + "\t[-R|--regionsize ]\n" + "\t[--alloc ]\n" "\t[-b|--background]\n" "\t[-f|--force]\n" - "\t[-i|--interval seconds]\n" - "\t[--stripes Stripes [-I|--stripesize StripeSize]]\n" + "\t[-i|--interval ]\n" + "\t[--stripes [-I|--stripesize ]]\n" COMMON_OPTS "\tLogicalVolume[Path] [PhysicalVolume[Path]...]\n\n" "lvconvert " - "[--splitmirrors Images --trackchanges]\n" + "[--splitmirrors --trackchanges]\n" "\t[--splitmirrors Images --name SplitLogicalVolumeName]\n" COMMON_OPTS "\tLogicalVolume[Path] [SplittablePhysicalVolume[Path]...]\n\n" @@ -246,7 +246,7 @@ xx(lvconvert, "lvconvert " "[--type snapshot|-s|--snapshot]\n" - "\t[-c|--chunksize]\n" + "\t[-c|--chunksize ]\n" "\t[-Z|--zero {y|n}]\n" COMMON_OPTS "\tOriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]\n\n" @@ -254,20 +254,20 @@ xx(lvconvert, "lvconvert " "--merge\n" "\t[-b|--background]\n" - "\t[-i|--interval seconds]\n" + "\t[-i|--interval ]\n" COMMON_OPTS "\tLogicalVolume[Path]\n\n" "lvconvert " "[--type thin[-pool]|-T|--thin]\n" "\t[--thinpool ThinPoolLogicalVolume[Path]]\n" - "\t[--chunksize size]\n" + "\t[--chunksize ]\n" "\t[--discards {ignore|nopassdown|passdown}]\n" "\t[--poolmetadataspare {y|n}]\n" - "\t[{--poolmetadata ThinMetadataLogicalVolume[Path] |\n" - "\t --poolmetadatasize size}]\n" - "\t[-r|--readahead ReadAheadSectors|auto|none]\n" - "\t[--stripes Stripes [-I|--stripesize StripeSize]]]\n" + "\t[--poolmetadata ThinMetadataLogicalVolume[Path] |\n" + "\t --poolmetadatasize ]\n" + "\t[-r|--readahead |auto|none]\n" + "\t[--stripes [-I|--stripesize ]]]\n" "\t[--originname NewExternalOriginVolumeName]]\n" "\t[-Z|--zero {y|n}]\n" COMMON_OPTS @@ -276,13 +276,13 @@ xx(lvconvert, "lvconvert " "[--type cache[-pool]|-H|--cache]\n" "\t[--cachepool CacheDataLogicalVolume[Path]]\n" - "\t[--cachemode CacheMode]\n" - "\t[--cachepolicy policy]\n" - "\t[--cachesettings key=value]\n" - "\t[--chunksize size]\n" + "\t[--cachemode ]\n" + "\t[--cachepolicy ]\n" + "\t[--cachesettings =]\n" + "\t[--chunksize ]\n" + "\t[--poolmetadata CacheMetadataLogicalVolume[Path] |\n" + "\t --poolmetadatasize ]\n" "\t[--poolmetadataspare {y|n}]]\n" - "\t[{--poolmetadata CacheMetadataLogicalVolume[Path] |\n" - "\t --poolmetadatasize size}]\n" COMMON_OPTS "\t[Cache|CacheDataPool]LogicalVolume[Path] [PhysicalVolumePath...]\n\n", -- 2.43.5