

def main():
    import sys
    from Naked.commandline import Command
    from Naked.toolshed.state import StateObject
    c = Command(sys.argv[0], sys.argv[1:])
    state = StateObject()
    if (not c.command_suite_validates()):
        from commit_entropy.settings import usage as commit_entropy_usage
        print(commit_entropy_usage)
        sys.exit(1)
    if c.help():
        from commit_entropy.settings import help as entropy_help
        print(commit_entropy_help)
        sys.exit(0)
    elif c.usage():
        from commit_entropy.settings import usage as commit_entropy_usage
        print(commit_entropy_usage)
        sys.exit(0)
    elif c.version():
        from commit_entropy.settings import app_name, major_version, minor_version, patch_version
        version_display_string = ((((((app_name + ' ') + major_version) + '.') + minor_version) + '.') + patch_version)
        print(version_display_string)
        sys.exit(0)
    elif (c.cmd == 'csv'):
        from commit_entropy.commands.csv_printer import CsvPrinter
        if c.flag('--ignore'):
            ignore = c.flag_arg('--ignore').split(',')
        else:
            ignore = []
        printer = CsvPrinter()
        printer.run(ignore=ignore)
    else:
        print('Could not complete the command that you entered.  Please try again.')
        sys.exit(1)

dataset/ETHPy150Open GripQA/commit-entropy/lib/commit_entropy/app.py main/original