Processing and validation of command-line parameters