How to parse CLI args:
- Iterate over the array of CLI args.
- Inside the loop, switch on each item.
Just make sure, if any of your options take parameters, to use a for-loop instead of a foreach-loop so that you can just increment the counter in the switch case.
If you install a library to parse CLI args, you might have left-pad syndrome.
How to parse CSV:
- Call String.Split.
If you install a library to parse CSV, you definitely have left-pad syndrome.
No comments:
Post a Comment