"""Calculate the number of Pomodori available within a time period.

Usage:
  get-pomodori [--from=<time>] [--break=<minutes>] [--long-break=<minutes>] <end-time>
  get-pomodori (-h | --help | --version)

Options:
  --version                   show program's version number and exit.
  -h, --help                  show this help message and exit.
  -f, --from=<time>           calculate available Pomodori from this time [default: now].
  -b, --break=<minutes>       the amount of minutes between each Pomodori [default: 5].
  -l, --long-break=<minutes>  the amount of minutes between every four Pomodori [default: 15].
"""
from docopt import docopt


def main():
    docopt(__doc__, version='0.2')

if __name__ == '__main__':
    main()

@@ -643,16 +643,106 @@
  docopt%0A
+from pomodoro_calculator import PomodoroCalculator%0Afrom colorama import Fore, Style, init%0A
 %0A%0Adef ma
@@ -750,16 +750,28 @@
 n():%0A   
+ arguments =
  docopt(
@@ -795,16 +795,1223 @@
 '0.2')%0A%0A
+    calc = PomodoroCalculator(%0A        end=arguments%5B'%3Cend-time%3E'%5D,%0A        start=arguments%5B'--from'%5D,%0A        short_break=int(arguments%5B'--break'%5D),%0A        long_break=int(arguments%5B'--long-break'%5D),%0A    )%0A%0A    colours = %7B%0A        'pomodoro': Style.BRIGHT + Fore.RED,%0A        'short-break': Fore.BLUE,%0A        'long-break': Fore.CYAN,%0A    %7D%0A%0A    init(autoreset=True)%0A%0A    pomodori_count = 0%0A%0A    for segment in calc.pomodori_schedule():%0A        line_dict = %7B%7D%0A%0A        if segment%5B'type'%5D == 'pomodoro':%0A            pomodori_count += 1%0A%0A            line_dict%5B'id'%5D = pomodori_count%0A            line_dict%5B'name'%5D = 'Pomodoro'%0A%0A        elif segment%5B'type'%5D == 'short-break':%0A            line_dict%5B'id'%5D = ''%0A            line_dict%5B'name'%5D = 'short break'%0A%0A        else:%0A            line_dict%5B'id'%5D = ''%0A            line_dict%5B'name'%5D = 'long break'%0A%0A        line_dict%5B'start'%5D = segment%5B'start'%5D.strftime('%25H:%25M')%0A        line_dict%5B'end'%5D = segment%5B'end'%5D.strftime('%25H:%25M')%0A%0A        line = %22%7Bid:%3E2%7D %7Bname:%3C12%7D %7Bstart%7D %E2%87%BE %7Bend%7D%22.format(**line_dict)%0A%0A        print(colours%5Bsegment%5B'type'%5D%5D + line)%0A%0A    total = '%7B:%3E26%7D %7B:%3E2%7D'.format('Total Pomodori:', pomodori_count)%0A    print(Style.BRIGHT + Fore.WHITE + total)%0A%0A
 if __nam

Add code to run from command line