Commit 5c9e81cd authored by Wai Yi Leung's avatar Wai Yi Leung

Throw error whenever the arguments are not complete

parent 1be44c94
......@@ -118,7 +118,7 @@ object CleverFixVCF extends ToolCommand {
*/
def main(args: Array[String]): Unit = {
val argsParser = new OptParser
val commandArgs: Args = argsParser.parse(args, Args()) getOrElse sys.exit(1)
val commandArgs: Args = argsParser.parse(args, Args()) getOrElse(throw new IllegalArgumentException)
val input: File = commandArgs.inputVCF
val output: File = commandArgs.outputVCF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment