import sys
from .version import versionChecker


def commands(downloader=None):
    """ Default main function for installers
    """
    if len(sys.argv) == 1:
        if downloader is not None:
            downloader()
    else:
        if sys.argv[1] == 'version-check':
            versionChecker()
