Skip to content
Snippets Groups Projects
Commit 5c9e81cd authored by Wai Yi Leung's avatar Wai Yi Leung
Browse files

Throw error whenever the arguments are not complete

parent 1be44c94
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment