60 else if(cmd.GetValue<
bool>(
"lsall"))
66 string input = cmd.GetValue<
string> (
"i");
67 string output = cmd.GetValue<
string> (
"o");
69 Console.WriteLine (
"Input File: {0} -> output: {1}", input, output);
71 Assembler
asm =
new Assembler ();
72 asm.l = PreProcess (input);
73 byte[] data =
asm.Comp ();
75 ModuleOutputFactory.WriteToFile (data, output, cmd.GetValue<
string> (
"t"));
void RegisterHelpArgument(string name="help")
Registers a help argument that will display the help page for the program if set by the user...
Definition: CommandLineArgs.cs:321
Class for defining, validating and processing command line arguments.
Definition: CommandLineArgs.cs:204
void PrintHelp(string errorMessage=null)
Prints a help message describing the effects of all available options.
Definition: CommandLineArgs.cs:243
An argument that can have any value.
Definition: CommandLineArgs.cs:732
string HelpMessage
The message that will be displayed in the help page for your program.
Definition: CommandLineArgs.cs:137
Action< object > Processor
A method that can be executed when the command line arguments are processed.
Definition: CommandLineArgs.cs:154
bool Validate(string[] args, OptionalOut< string[]> outErrors=null)
Processes a set of command line arguments.
Definition: CommandLineArgs.cs:355
void SetDefaultArgument(string argument)
Sets the default argument that will be filled when no argument name is given.
Definition: CommandLineArgs.cs:334
A simple argument flag.
Definition: CommandLineArgs.cs:683
void RegisterArgument(string name, Argument arg)
Registers a new argument.
Definition: CommandLineArgs.cs:312