summaryrefslogtreecommitdiffstats
path: root/misc-utils/rename.c
diff options
context:
space:
mode:
authorSami Kerola2017-05-18 23:19:34 +0200
committerKarel Zak2017-05-19 11:43:34 +0200
commit8c1ce08da98691bb01035df6118fc4283b56799f (patch)
tree25220a50aeffc2131bc6beb453a555bad43dee45 /misc-utils/rename.c
parentdocs: update source-code-management.txt (diff)
downloadkernel-qcow2-util-linux-8c1ce08da98691bb01035df6118fc4283b56799f.tar.gz
kernel-qcow2-util-linux-8c1ce08da98691bb01035df6118fc4283b56799f.tar.xz
kernel-qcow2-util-linux-8c1ce08da98691bb01035df6118fc4283b56799f.zip
rename: make --no-act to imply --verbose
It is reasonable to assume use of --no-act means one wants to always see what would have happen if rename is done. To say same slightly differently, if there is sn use case for silent rename --no-act run I cannot think one. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/rename.c')
-rw-r--r--misc-utils/rename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/rename.c b/misc-utils/rename.c
index c1b9d4a0e..502e888d7 100644
--- a/misc-utils/rename.c
+++ b/misc-utils/rename.c
@@ -154,11 +154,11 @@ int main(int argc, char **argv)
while ((c = getopt_long(argc, argv, "vsVhn", longopts, NULL)) != -1)
switch (c) {
- case 'v':
- verbose = 1;
- break;
case 'n':
noact = 1;
+ /* fallthrough */
+ case 'v':
+ verbose = 1;
break;
case 's':
do_rename = do_symlink;