massren
massren copied to clipboard
Argument leader
I'm guessing most of users of massren doesn't expect /n
like argument. I hope to change it to -n
on windows.
Thank you
If I'm not mistaken, this is a feature of go-flag - it automatically displays the arguments as -n, --dry-run
on POSIX systems and /n, /dry-run
on Windows. I think the parser supports both though, so it's still possible to use -n
on Windows too.
Yes, I'm afraid of case that windows user may do like follow:
C:\>mkdir C:\n
C:\>massren /n
Hmm, but wouldn't the second example only apply to someone using Cygwin or equivalent? And even then, I believe they'd need to do something like massren $(cygpath -w "/n")
, which would translate the path to the backslash one.
Actually as I don't use Windows much I don't have a strong opinion on this one. If it turns out it's an issue, I don't mind defaulting it to the -n
syntax.
The windows users who uses linux often too are using path /
separator. This issue is not an issue for cygwin users. And quote "/n"
don't fix this case. If want to fix this issue, you will have to fix the argument leader as -
.
If this is about using commands like, C:/massren.exe /n
, they work (and will work) perfectly fine as long as you put spaces between arguments (the same behaviour as POSIX systems)
In GitBash (terminal comming with Git on Windows) massren --help
display flags as /help
but they do not work.
For example:
massren /V
open the editor with single line \
inside.