Giter VIP home page Giter VIP logo

Comments (6)

laurent22 avatar laurent22 commented on May 24, 2024

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.

from massren.

mattn avatar mattn commented on May 24, 2024

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

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

from massren.

laurent22 avatar laurent22 commented on May 24, 2024

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.

from massren.

mattn avatar mattn commented on May 24, 2024

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

from massren.

hashhar avatar hashhar commented on May 24, 2024

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)

from massren.

kpym avatar kpym commented on May 24, 2024

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.

from massren.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.