@DataProvider(name="invalidCommandLineArgs") public Object[][] createInvalidCommandLineArgs(){
  return new Object[][]{{new String[]{"sub-command1","one"}},{new String[]{"sub-command1","one","two"}},{new String[]{"sub-command2"}},{new String[]{"sub-command2","one"}},{new String[]{"sub-command2","one","two","three","four","five"}}};
}

@ DataProvider ( name = "invalidCommandLineArgs" ) public Object [ ] [ ] createInvalidCommandLineArgs ( ) { return new Object [ ] [ ] { { new String [ ] { "sub-command1" , "one" } } , { new String [ ] { "sub-command1" , "one" , "two" } } , { new String [ ] { "sub-command2" } } , { new String [ ] { "sub-command2" , "one" } } , { new String [ ] { "sub-command2" , "one" , "two" , "three" , "four" , "five" } } } ; }
provide invalid command line args .
