From: Sami Kerola Date: Thu, 18 May 2017 21:19:34 +0000 (+0100) Subject: rename: make --no-act to imply --verbose X-Git-Tag: v2.30-rc2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1ce08da98691bb01035df6118fc4283b56799f;p=thirdparty%2Futil-linux.git 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 --- 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;