From 56ea130650b9e1423daad74c446c83336e5958d9 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 19 Oct 2021 15:24:16 +0100 Subject: [PATCH] [tests/thin_dump] Update help string --- tests/thin_dump.rs | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/tests/thin_dump.rs b/tests/thin_dump.rs index 990a3bb..690434a 100644 --- a/tests/thin_dump.rs +++ b/tests/thin_dump.rs @@ -15,16 +15,29 @@ use common::thin::*; //------------------------------------------ -const USAGE: &str = "Usage: thin_dump [options] {device|file}\n\ - Options:\n \ - {-h|--help}\n \ - {-f|--format} {xml|human_readable|custom}\n \ - {-r|--repair}\n \ - {-m|--metadata-snap} [block#]\n \ - {-o }\n \ - {--dev-id} \n \ - {--skip-mappings}\n \ - {-V|--version}"; +const USAGE: &str = +"thin_dump 0.9.0 +Dump thin-provisioning metadata to stdout in XML format + +USAGE: + thin_dump [FLAGS] [OPTIONS] + +FLAGS: + -q, --quiet Suppress output messages, return only exit code. + -r, --repair Repair the metadata whilst dumping it + --skip-mappings Do not dump the mappings + -h, --help Prints help information + -V, --version Prints version information + +OPTIONS: + --data-block-size Provide the data block size for repairing + -m, --metadata-snapshot Access the metadata snapshot on a live pool + --nr-data-blocks Override the number of data blocks if needed + -o, --output Specify the output file rather than stdout + --transaction-id Override the transaction id if needed + +ARGS: + Specify the input device to dump"; //-----------------------------------------