This fixes a bug introduced by commit
fabb90676 ("Added --no-override
option to rename.", 2017-05-27) where the fallthrough meant to let
--no-act set --verbose was changed to set --no-override (the previous
code was too smart).
Do not let --no-act set --verbose anymore but update the manual to
recommend adding option --verbose. This is to be able to make --no-act
detect only non existing file arguments (in a future commit).
Show which files were renamed, if any.
.TP
.BR \-n , " \-\-no\-act"
-Do not make any changes.
+Do not make any changes; add
+.BR \-\-verbose
+to see what would be made.
.TP
.BR \-o , " \-\-no\-overwrite"
Do not overwrite existing files. When
switch (c) {
case 'n':
noact = 1;
- /* fallthrough */
- case 'o':
- nooverwrite = 1;
- break;
+ break;
case 'v':
verbose = 1;
break;
+ case 'o':
+ nooverwrite = 1;
+ break;
case 's':
do_rename = do_symlink;
break;