Microsoft: Saving you time by making you type more
-
System.CommandLine
Someone recently asked me about this, and had never heard of it. Now I know why.var fileOption = new Option( name: "--file", description: "The file to read and display on the console.");
// ... followed by tons of boilerplate to put the args together
I could have parse --file faster with a string
switch
inside awhile
loop. Or done this (my code):[CmdArg(Name="file",Description = "The file to create. Defaults to ")]
static TextWriter OutputFile = Console.Out;I've just specified more information than microsoft (a /file arg and a default value) in less code and I even omitted their boilerplate garbage from the above. I'm sorry, but who in the heck are they hiring these days? I used to work on their development tools. I remember that it was important that they actually saved you time. That mattered to my super. What gives?
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix