1

A production quality console app has to handle validating and parsing command line parameters + displaying errors to the user. This is a repetitive task and I am wondering if there is a library/framework/application block to standardize these tasks. Depending upon the app, I find that sometimes more than 50% of the code is just parsing parameters, doing validation, handling errors etc.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
morpheus
  • 18,676
  • 24
  • 96
  • 159

1 Answers1

1

There are many libraries, such as the Command Line Parser Library, which handle parsing command lines cleanly in an automated fashion.

Reed Copsey
  • 554,122
  • 78
  • 1,158
  • 1,373