@run.command(context_settings=CONTEXT_SETTINGS)
@click.option('--input-path', '-i', type=click.Path(exists=True), help='Path to input directory with video files.')
@click.option('--params', '-p', multiple=True, default=None, nargs=2, help='Set parameter. First argument is path to parameter separated by ";". Second is the value.python -m anwa nogui -p Processing;Show True')
@click.option('--print-params', '-pp', is_flag=True, help='Print parameters')
def nogui(input_path, params, print_params):
    mainapp = algorithm.AnimalWatch()
    logger.debug(f'params={params})')
    if print_params:
        make_print_params(mainapp)
        exit()
    set_params(mainapp, params)
    mainapp.set_input_dir(input_path)
    mainapp.run()
@run.command(context_settings=CONTEXT_SETTINGS)
@click.option('--input-path', '-i', type=click.Path(exists=True), help='Path to input directory with video files.')
@click.option('--params', '-p', multiple=True, default=None, nargs=2, help='Set parameter. First argument is path to parameter separated by ";". Second is the value.python -m anwa nogui -p Processing;Show True')
@click.option('--print-params', '-pp', is_flag=True, help='Print parameters')
def nogui(input_path, params, print_params):
    mainapp = algorithm.AnimalWatch()
    logger.debug(f'params={params})')
    if print_params:
        make_print_params(mainapp)
        exit()
    set_params(mainapp, params)
    mainapp.set_input_dir(input_path)
    mainapp.run()