From 8c1ce08da98691bb01035df6118fc4283b56799f Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 18 May 2017 22:19:34 +0100 Subject: [PATCH] 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 --- misc-utils/rename.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc-utils/rename.c b/misc-utils/rename.c index c1b9d4a0eb..502e888d79 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; -- 2.39.2