Skip to content

matthewbednarski/CmdLine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CmdLine

command line arguments parser utilities

.NET 2.0 compatable

public static void Main(string[] arguments)
{
  CmdLine.Option o1 = new CmdLine.Option('f', "file", "File parameter.", false );
  CmdLine.Option flag1 = new CmdLine.Option('v', "verbose", "Print verbose output." , true, "FALSE");

  CmdLine.Args args = new CmdLine.Args(arguments, new CmdLine.Option[]{o1, flag1});

  CmdLine.Option help = args.GetOption('?');
  if(help.ActualValue_AsFlag)
  {
    Console.WriteLine(args.Usage());
    return;
  }

}

About

command line arguments parser utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages