public void testOptionalMultiArgument() throws Exception {
TestShell shell = new TestShell();
shell.addAlias("cmd", "org.jnode.test.shell.syntax.ArgumentMultiplicityTest$OptionalMulti");
shell.addSyntax("cmd", new RepeatSyntax(new ArgumentSyntax("arg1")));
CommandLine cl = new CommandLine(new Token("cmd"), new Token[] {new Token("F1")}, null);
CommandInfo cmdInfo = cl.parseCommandLine(shell);
Command cmd = cmdInfo.createCommandInstance();
Assert.assertEquals("F1", cmd.getArgumentBundle().getArgument("arg1").getValue().toString());
cl = new CommandLine(new Token("cmd"), new Token[] {}, null);
cmdInfo = cl.parseCommandLine(shell);