Handling Errors/Error on Duplicate Options [ System tests ]

FUNCTION

ROBODoc should complain about options that are specifed more than once.

SOURCE

{
    add_source( "test.c", $source );
    my ($out, $err) = runrobo( qw( --src Src --doc Doc --multidoc --test --test --test) );
    print $out;
    like($out, qr/Usage/, 'Duplicate options should print usage' );
    print $err;
    like($err, qr/than\sonce/, 'and an error message'   );
    clean();
}