def main():
    args = getopts(sys.argv)
    if ('-v' in args):
        output(('Majime version ' + str(version)))
        sys.exit(0)
    if (('-h' in args) or (args == {})):
        print_help()
        sys.exit(0)
    if ('-j' in args):
        output_format = 'json'
    else:
        output_format = 'standard'
    if ('-d' in args):
        dryrun = 'yes'
    else:
        dryrun = 'no'
    if ('-g' in args):
        swagger_url = args['-g']
        generate_test(swagger_url)
    if ('-f' in args):
        test_file = args['-f']
        perform_test(test_file, output_format, dryrun=dryrun)
def main():
    args = getopts(sys.argv)
    if ('-v' in args):
        output(('Majime version ' + str(version)))
        sys.exit(0)
    if (('-h' in args) or (args == {})):
        print_help()
        sys.exit(0)
    if ('-j' in args):
        output_format = 'json'
    else:
        output_format = 'standard'
    if ('-d' in args):
        dryrun = 'yes'
    else:
        dryrun = 'no'
    if ('-g' in args):
        swagger_url = args['-g']
        generate_test(swagger_url)
    if ('-f' in args):
        test_file = args['-f']
        perform_test(test_file, output_format, dryrun=dryrun)