#!/usr/bin/env python
__version__ = '0.0.1'
__name__ = 'pomodoro'
import click
import progressbar
import time

@click.command()
@click.option('--minutes', default=25, help='Number of minutes, default 25.')
def pomodoro(minutes):
    bar = progressbar.ProgressBar(widgets=[
        progressbar.Bar(),
    ])
    for i in bar(range(minutes*60)):
        time.sleep(1)

if __name__ == '__main__':
    pomodoro()

#!/usr/bin/env python
__version__ = '0.0.1'

import click
import progressbar
import time

@click.command()
@click.option('--minutes', default=25, help='Number of minutes, default 25.')
def pomodoro(minutes):
    bar = progressbar.ProgressBar(widgets=[
        progressbar.Bar(),
    ])
    for i in bar(range(minutes*60)):
        time.sleep(1)

if __name__ == '__main__':
    pomodoro()

Update main.py