Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    motsu
    @motsu35
    currently i don't see a way to do this without handling the logic myself. maybe im missing something thoug
    Saveliy Baranov
    @concubicycle
    Heya. I installed the latest build (2.1.1-beta), and the ParseArgumentsStrict method seems to be missing when doing CommandLine.Parser.Default.ParseArgumentsStrict(args, options);
    Dan Nemec
    @nemec
    @deostroll it works fine on Mono in my experience
    @joanbarros the repo owner had been out of touch for quite a while (over 1 year). There have been occasional updates to the beta but now that the owner has returned there will hopefully be a release of version 2 coming out soon.
    Dan Nemec
    @nemec
    @motsu35 no plans, but you're welcome to submit it as an issue
    @concubicycle the beta was rewritten from scratch and I don't think Strict was added back in. Feel free to submit a feature request for it.
    Saveliy Baranov
    @concubicycle
    @nemec Is there a simple usage example for the beta? I'm not necessarily looking for the same behavior is ParseArgumentsStrict
    Dan Nemec
    @nemec
    @concubicycle usage guide is here.
    Frederik Carlier
    @qmfrederik
    Any news on when we can expect a new (beta) version of CommandLine on NuGet?
    I hit gsscoder/commandline#388 frequently and a NuGet package would help :)
    Eric Newton
    @ericnewton76
    Hello everybody. We've moved the commandlineparser library into a formal GitHub team: https://github.com/commandlineparser/commandline
    I wanted to discuss releases of v2 of commandlineparser which are planned.
    Eric Newton
    @ericnewton76
    Note to all, v2.2.0 release is imminent. Build server working great. Just need to create v2.2.0 tag and it'll package things up and send out to Nuget
    Eric Newton
    @ericnewton76
    v2.2.0 release is out! Enjoy. nuget install CommandLineParser
    Neil Ramsbottom
    @nramsbottom
    Would be nice to see a simple example of how to use the library. The current demo is far too complicated.
    Amadeusz Sadowski
    @amis92

    Hi, I've got a question. The System.CommandLine project was finally archived and will not be developed further. Could we possibly open new repository under this organization, which would host that implementation? It's rather unique in its own way, not using reflection, strongly typed, very lightweight, supporting very heavily UNIX style.

    I could take on maintenance, but I thought it'd be better to host is as part of an already CLI Parsing - oriented team, rather than on my own.

    itadder
    @itadder
    hi
    is thier a good example walk through of this library
    is this the offical nuget package https://i.imgur.com/Tz2eGS8.png
    Amadeusz Sadowski
    @amis92

    @itadder Nice examples are here: https://github.com/commandlineparser/commandline#quick-start-examples

    Also, yes. CommandLineParser by gsscoder is the correct package.

    itadder
    @itadder
    thanks
    @amis92 what am I doing wrong here https://i.imgur.com/MQRF9BC.png
    Amadeusz Sadowski
    @amis92

    I don't really know what you want to do. Have you looked at the Quick Start Examples I've linked? First example:

    CommandLine.Parser.Default.ParseArguments<Options>(args)

    You're passing new object of given type instead of either providing (as in quote above) generic type, or you could do ParseArguments(args, typeof(Options)).

    itadder
    @itadder
    I will look
    itadder
    @itadder
    all I want to do is read a paramters
    two of them
    itadder
    @itadder
    all I want to do is accept -domainname and -group
    and then I want to use a method to add the machine it run on to that group using directoryservice namespace classes
    Sean Meyer
    @SeanMeyer
    Hi, I've just started making an app with this library, and the library is a joy to use, very easy. One thing I'm unsure about though is how to modify the help screen. I see how to create a custom HelpText object, but how do I actually assign my object as the text to be used?
    itadder
    @itadder
    heya
    ... https://i.imgur.com/nBVBVoo.png ... what am I doing wrong here
    image.png
    hellboy81
    @hellboy81
    Hi
    hellboy81
    @hellboy81
    I am looking for missing dictionary options support for command
    Petr Nymsa
    @petrnymsa
    [NET CORE] Hi, is .NET Core 2.1 supported? After NuGet install, i have still missing namespace CommandLine. What can i do about it? Thank you
    Stephan Vedder
    @feliwir
    Hey, i just compiled my project with CoreRT to native code just fine
    Unfortunaly commandlineparser is crashing though
    Unhandled Exception: System.MissingMethodException: Method 'CommandLine.OptionAttribute..ctor' not found.
       at Internal.Reflection.Extensions.NonPortable.CustomAttributeInstantiator.Instantiate(CustomAttributeData) + 0x528
       at OpenSage.Viewer!<BaseAddress>+0x7f167c
       at System.Linq.Enumerable.<OfTypeIterator>d__59`1.MoveNext() + 0x7e
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1) + 0x31
       at CommandLine.Core.ReflectionExtensions.<>c__0`1.<GetSpecifications>b__0_2(<>f__AnonymousType9`2) + 0x26
       at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() + 0x8f
       at System.Linq.Lookup`2.Create[TSource](IEnumerable`1, Func`2, Func`2, IEqualityComparer`1) + 0x5a
       at System.Linq.GroupedEnumerable`3.GetEnumerator() + 0x32
       at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext() + 0x2e
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1, Func`2) + 0x4b
       at CommandLine.Core.SpecificationExtensions.ThrowingValidate(IEnumerable`1, IEnumerable`1) + 0x8c
       at CommandLine.Core.InstanceBuilder.Build[T](Maybe`1, Func`3, IEnumerable`1, StringComparer, Boolean, CultureInfo, IEnumerable`1) + 0x19c
       at CommandLine.Parser.ParseArguments[T](IEnumerable`1) + 0xf7
       at OpenSage.Viewer.Program.Main(String[]) + 0x38
       at OpenSage.Viewer!<BaseAddress>+0x832c26
    Anyone knows how i can prevent that?
    Reed Copsey, Jr.
    @ReedCopsey
    I
    Arg, sorry
    Stephan Vedder
    @feliwir
    Well, figured it already
    Mohamed Hassan
    @moh-hassan
    Hi, Eric Newton. What isthe plan to publish the PR for support net40,net45,..
    Haraven
    @haraven_gitlab
    hey, i have a c# cli i'm working on for which i'd like to use commandline. thing is i have a variable number of parameters that i can pass to my program. is there any way to parse them, or am i restricted to use only a specific number of params?
    Mohamed Hassan
    @moh-hassan
    Hi @haraven_gitlab
    You create Option class or Verb that map all your arguments. then you can pass all /or some options.
    You can find many examples in wiki: https://github.com/commandlineparser/commandline/wiki. Also you can post an Issue here: https://github.com/commandlineparser/commandline/issues
    Jurjen Biewenga
    @JurjenBiewenga
    Hey, is there a list of types supported? Curious whether I can use a System.Range and what the syntax would be
    mu88
    @mu88

    Hey,
    I'm developing a small .NET Core CLI app. For this, I want to make use of .NET Core's new Configuration Providers. The app shall be configurable via appsettings.json, command-line and environment variables. Last but not least, I'd like to use the Options pattern (strongly-typed configuration classes).

    When it comes to command-line configuration, .NET Core comes with the built-in Command-line Configuration Provider. But the syntax for overriding parameters in conjunction with the Options pattern is a bit ugly.

    From other .NET applications I'm familiar to the wonderful Command Line Parser package. Is it possible to combine this package with the Options pattern so that I can make use of the .NET Core Configuration Providers (for environment variables and appsettings.json) and pass arguments via command-line in a more pleasant form?

    Joan Barros
    @joanbarros

    @mu88 I've been using this library for about 8 months now. From what I can tell just by looking at the API, class structure and how I've experienced the library behaves I think you should be able to use the same model for both approaches. The only thing that I can think of that might be a bit sketchy is when you'll have to merge both objects from different sources.

    Please take into account that this is an attempt to answer your question without any concrete evidence of what I'm talking about hehe. I'm not even close to being an expert on this library.

    Hope that helps a bit. If you need any further explanation on how I think this could be done I could try to explain it better or maybe even put togeter a proof of concept.

    Either ay, good luck with that. :)