GithubHelp home page GithubHelp logo

Comments (3)

siywilliams avatar siywilliams commented on July 21, 2024

Thanks @ian-moore

Not really a bug, just the way the options are interpreted. It was also highlighted in issue #24

A single dash denotes a short option, and grouped short option are supported, so the parser is interpreting -myoption as -m -y -o -p -t -i -o -n options.

That being said, I agree with you regarding the README and error thrown. That section of the readme wasn't updated correctly after the short option grouping was added.

EDIT: After just looking into this some more, the OptionSyntaxException that gets raised should be handled by the parser and returned as part of the results object. If this isn't the case then that is definitely a bug.

from fluent-command-line-parser.

ian-moore avatar ian-moore commented on July 21, 2024

Sorry, didn't catch that in the readme about the multiple short options. Thanks for pointing out - cool feature. Would be nice if that was near the rest of syntax explanation. After pulling down the source and testing this out, I can't reproduce and I see the exception caught in the location you linked to. Not sure why it lets the exception escape in the project I added the latest nuget package too... I'll keep looking.

from fluent-command-line-parser.

siywilliams avatar siywilliams commented on July 21, 2024

I'll try and get round to improving the readme, I might also include a way of optionally disabling combined options, which would allow -myoption to resolve to a long option name.

Did you have 'break when an exception is thrown' enabled for CLR Exceptions in Visual Studio? That would cause the debugger to break when it was thrown. Other than that I can't think of any other reason.

from fluent-command-line-parser.

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.