CLAP icon indicating copy to clipboard operation
CLAP copied to clipboard

Multiple apps and help - how to call?

Open virtualdreams opened this issue 11 years ago • 4 comments

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); } }

virtualdreams avatar Aug 12 '14 11:08 virtualdreams

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 https://github.com/adrianaisemberg/CLAP/issues/29.

adrianaisemberg avatar Aug 12 '14 13:08 adrianaisemberg

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

virtualdreams avatar Aug 12 '14 13:08 virtualdreams

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 https://github.com/adrianaisemberg/CLAP/issues/29#issuecomment-51916220.

adrianaisemberg avatar Aug 12 '14 13:08 adrianaisemberg

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

virtualdreams avatar Aug 12 '14 14:08 virtualdreams