Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument leader #8

Open
mattn opened this issue Feb 19, 2014 · 6 comments
Open

Argument leader #8

mattn opened this issue Feb 19, 2014 · 6 comments
Labels

Comments

@mattn
Copy link
Contributor

mattn commented Feb 19, 2014

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

@laurent22
Copy link
Owner

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.

@mattn
Copy link
Contributor Author

mattn commented Feb 20, 2014

Yes, I'm afraid of case that windows user may do like follow:

C:\>mkdir C:\n
C:\>massren /n

@laurent22
Copy link
Owner

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.

@mattn
Copy link
Contributor Author

mattn commented Feb 24, 2014

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 -.

@hashhar
Copy link
Collaborator

hashhar commented Nov 21, 2015

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)

@kpym
Copy link

kpym commented Feb 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants