mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvm_import_vdo: --dry-run automatically verbose
Dry-run is way more usable when it's verbose.
This commit is contained in:
parent
944e560e96
commit
3817392d87
@ -59,7 +59,7 @@ Answer "yes" at any prompts.
|
|||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.BR --dry-run
|
.BR --dry-run
|
||||||
Print commands without running them.
|
Print verbosely commands without running them.
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
.SH DIAGNOSTICS
|
.SH DIAGNOSTICS
|
||||||
|
@ -73,7 +73,7 @@ tool_usage() {
|
|||||||
echo " -n | --name Specifies VG/LV name for converted VDO volume"
|
echo " -n | --name Specifies VG/LV name for converted VDO volume"
|
||||||
echo " -v | --verbose Be verbose"
|
echo " -v | --verbose Be verbose"
|
||||||
echo " -y | --yes Answer \"yes\" at any prompts"
|
echo " -y | --yes Answer \"yes\" at any prompts"
|
||||||
echo " --dry-run Print commands without running them"
|
echo " --dry-run Print verbosely commands without running them"
|
||||||
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
@ -434,7 +434,7 @@ do
|
|||||||
"-n"|"--name" ) shift; NAME=$1 ;;
|
"-n"|"--name" ) shift; NAME=$1 ;;
|
||||||
"-v"|"--verbose") VERB="-v" ;;
|
"-v"|"--verbose") VERB="-v" ;;
|
||||||
"-y"|"--yes" ) YES="-y" ;;
|
"-y"|"--yes" ) YES="-y" ;;
|
||||||
"--dry-run" ) DRY="1" ;;
|
"--dry-run" ) DRY="1" ; VERB="-v" ;;
|
||||||
"-*") error "Wrong argument \"$1\". (see: $TOOL --help)" ;;
|
"-*") error "Wrong argument \"$1\". (see: $TOOL --help)" ;;
|
||||||
*) DEVICENAME=$1 ;; # device name does not start with '-'
|
*) DEVICENAME=$1 ;; # device name does not start with '-'
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user