gtrianta1965 / ServiceWatcher

Standalone java application for Service Monitoring
0 stars 0 forks source link

Implement a command line switch to display help (syntax) #3

Closed gtrianta1965 closed 7 years ago

gtrianta1965 commented 7 years ago

-help switch can be used to display the usage of ServiceWatcher. When -help is specified then the program will exit immediately after displaying the help in the console.

Implement this functionality in Main.java and do not clutter main method but encapsulate logic in a seperate method "checkHelpRequestedOnCommandLine"

Command line options parsing should be revisitted (no need to have a method for each switch we want to check). So consider a generic method that processes all current and future options.