Giter VIP home page Giter VIP logo

Comments (4)

adrianaisemberg avatar adrianaisemberg commented on July 17, 2024

Try -?

[mobile]
On Aug 12, 2014 4:36 AM, "virtualdreams" [email protected] wrote:

I have multiple apps and in each app a help attribute. How to call the
help from the command line?

  • Empty cmd -> nothing
  • domain. -> exception
  • domain.help -> exeption
  • help -> exception

Exceptions exceptions exception, and the docu says nothing about mupltiple

apps and how to call the help.

Domain domain = new Domain();
User user = new User();
Parser.Run(args, domain, user);

public class User
{
[Empty, Help]
void ShowHelp(string help)
{
Console.WriteLine(help);
}
}

public class Domain
{
[Empty, Help]
void ShowHelp(string help)
{
Console.WriteLine(help);
}
}


Reply to this email directly or view it on GitHub
#29.

from clap.

virtualdreams avatar virtualdreams commented on July 17, 2024

Ok, i have renamed ShowHelp to Help and now i can call domain.help and so on. But how i can display the help for all apps at the same time? Like:

foo.exe help

from clap.

adrianaisemberg avatar adrianaisemberg commented on July 17, 2024

Please try RunConsole instead of Run.
See the website for doc on that:
http://adrianaisemberg.github.io/CLAP/#consolewinforms

[mobile]
On Aug 12, 2014 6:51 AM, "virtualdreams" [email protected] wrote:

Ok, i have renamed ShowHelp to Help and now i can call domain.help and so
on. But how i can display the help for all apps at the same time? Like:

foo.exe help


Reply to this email directly or view it on GitHub
#29 (comment).

from clap.

virtualdreams avatar virtualdreams commented on July 17, 2024

Ok, this solved my problem. Without any parameter it displays the help for each app. Thanks.

from clap.

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.