public override void Parse(FlagParse fp) { fp.CrBool("h", false); fp.CrBool("nx", false); fp.CrBool("ow", false); fp.CrBool("nodir", false); fp.CrBool("nac", true); fp.CrString("output", ""); }
public override void Parse(FlagParse fp) { fp.CrBool("h", false); fp.CrBool("doj", false); fp.CrBool("nomerge", false); fp.CrBool("puremerge", false); fp.CrString("i", ""); // This feature will be declared "deprecated" from the start, but has only been put in to prevent confusion with the Go version fp.CrString("cm", "lzma"); fp.CrString("fc", "lzma"); fp.CrString("jif", ""); fp.CrString("author", ""); fp.CrString("notes"); fp.CrBool("qu", false); }
static void Main(string[] args) { Source.Hello(); Compile.Hello(); Dirry.InitAltDrives(); Instruction.Init(); MKL.Version("Wendicka Project - WASM_Main.cs", "20.03.01"); MKL.Lic("Wendicka Project - WASM_Main.cs", "GNU General Public License 3"); Console.WriteLine($"Wendicka Assembler {MKL.Newest} - (c) {MKL.CYear(2020)} Jeroen P. Broks\n"); if (args.Length == 0) { Console.WriteLine("Usage: WASM [options] <File>"); TrickyDebug.AttachWait(); return; } var parse = new FlagParse(args); parse.CrBool("s", false); parse.Parse(); Silence = parse.GetBool("s"); foreach (string f in parse.Args) { Compile.Go(Dirry.AD(f).Replace("\\", "/")); } Console.WriteLine($"\tErrors: {Errors}; Warnings: {Warnings}"); TrickyDebug.AttachWait(); }
private Program(string[] args) { fp = new FlagParse(args); Dirry.InitAltDrives(); MKL.Lic("Alternate Dir - Program.cs", "GNU General Public License 3"); MKL.Version("Alternate Dir - Program.cs", "19.10.27"); fp.CrBool("p", false); fp.CrBool("all", false); fp.CrBool("ansi", OnWindows); fp.CrBool("s", false); fp.CrBool("w", false); fp.CrBool("b", false); fp.CrBool("h", false); fp.Parse(); }
public override void Parse(FlagParse fp) { fp.CrBool("-qu", false); }
public override void Parse(FlagParse fp) { fp.CrBool("x", false); // so extended stuff too like Author and Notes fp.CrBool("a", false); // show aliases fp.CrBool("xd", false); // Show all data }
public override void Parse(FlagParse fp) { fp.CrBool("b", false); fp.CrBool("nsh", false); fp.CrBool("nln", false); }
private static void InitArgs() { JCR6_lzma.Init(); MyArgs.CrBool("version", false); MyArgs.CrBool("help", false); MyArgs.CrBool("h", false); if (!MyArgs.Parse(true)) { throw new Exception("Invalid input"); } if (MyArgs.GetBool("version")) { Head(); Console.WriteLine(MKL.All(true)); Environment.Exit(0); } if (MyArgs.GetBool("h") || MyArgs.GetBool("help")) { Head(); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("MKL_Update "); Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("[<dir1> [<dir2> [<dir3>....]]]"); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine("\tUpdates the MKL data and license blocks in given directories. If none given, the current directory will be done"); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("MKL_Update "); Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine("-h"); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("MKL_Update "); Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine("-help"); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine("\tShows this help text"); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("MKL_Update "); Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine("-version"); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine("\tShows detailed version information"); Console.WriteLine("\n\n\nThe next programming languages are supported by MKL_Update"); foreach (string k in JCR.Entries.Keys) { if (qstr.Prefixed(k, "EXT/")) { TGINI T = GINI.ReadFromLines(JCR.ReadLines(k)); // Console.WriteLine($"{k} => {qstr.Prefixed(k, "EXT/")}"); // debug line Console.ForegroundColor = ConsoleColor.Yellow; Console.BackgroundColor = ConsoleColor.Blue; Console.Write(k.ToLower()); for (int i = k.Length; i < 30; i++) { Console.Write(" "); } Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine($" {T.C("LANGUAGE")}"); } } Console.ResetColor(); Environment.Exit(0); } }