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
  • 159,224
  • 26
  • 237
  • 393
morpheus
  • 17,135
  • 21
  • 84
  • 151

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
  • 539,124
  • 75
  • 1,126
  • 1,354