It woudl really improve the readability to extract everything within the following else-if-expressions to their own methods, like you did here with printHelp.