def getArguments(parser):
    """Provides additional validation of the arguments collected by argparse."""
    args = parser.parse_args()
    if args.order < 0 or args.order > 5:
        parser.error('The order has to be a number between 0 and 5.')
    return args
