def try_argcomplete(parser):
    """Make sure to use argcomplete if it is installed.

    :param parser: the parser to add autocomplete
    """
    try:
        import argcomplete
    except ImportError:
        pass
    else:
        argcomplete.autocomplete(parser)
