Skip to content

make two versions of ArgsParser.parse() - one handles ArgsException, the other throws ArgsExceptions #26

@AbUndMax

Description

@AbUndMax

one version directly uses the recommended ArgsException handling!

try {
        ArgsParser.parse(args);
        
} catch (CalledForHelpNotification help) {
        System.out.println(help.getMessage());
        System.exit(0);
        
} catch (ArgsException e) {
        System.out.println(e.getMessage());
        System.exit(1);
    }

so the user don't has to handle the exceptions

while the other method will not implement this but will throw the ArgsExceptions and asks the programmer to handle the code!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions