""" lazy

    Usage:
        lazy new
        lazy show
        lazy remove <id>

    Options:
    -h, --help  : show this help message
"""

from docopt import docopt

from app.task import TaskError, addTask, removeTask, showByAssigne

def new():
    title = input('Title: ')
    description = input('Description: ')
    creator = input('Creator(Email): ')
    assigne = input('Assigne(Email): ')
    priority = input('Priority(0 = LOW, 1 = MIDDLE, 2 = HIGH): ')

    if priority == "":
        # The priority string is empty, so we take the default value.
        priority = "0"

    try:
        priority = int(priority.strip())
    except ValueError:
        print('Priority must be one of the following values: 0, 1, 2')
        return

    try:
        id = addTask(title, description, creator, assigne, priority=priority)
    except TaskError as e:
        print(e)

    print("Your task has been added with the id {0}".format(id))

def showForCurrentUser():
    tasks = showByAssigne('test@test.com')
    print('===============================================================')
    for task in tasks:
        print(task)
        print('===============================================================')

def remove(id):
    try:
        removeTask(id)
    except TaskError as e:
        print(e)

def main(docopt_args):

    if docopt_args['new']:
        new()
    elif docopt_args['show']:
        showForCurrentUser()
    elif docopt_args['remove']:
        remove(docopt_args['<id>'])

if __name__ == '__main__':
    args = docopt(__doc__)
    main(args)

@@ -27,19 +27,23 @@
    lazy 
+(
 new
+%7Cn)
 %0A       
@@ -48,20 +48,31 @@
    lazy 
+(
 show
+%7Cs) %5B%3Cid%3E%5D
 %0A       
@@ -77,22 +77,30 @@
    lazy 
-remove
+(delete%7Cdel%7Cd)
  %3Cid%3E%0A%0A 
@@ -239,14 +239,19 @@
 Task
-, show
+ById, fetch
 ByAs
@@ -255,16 +255,17 @@
 yAssigne
+e
 %0A%0Adef ne
@@ -983,24 +983,37 @@
 rentUser():%0A
+    try:%0A    
     tasks = 
@@ -1012,20 +1012,21 @@
 tasks = 
-show
+fetch
 ByAssign
@@ -1026,16 +1026,17 @@
 yAssigne
+e
 ('test@t
@@ -1045,16 +1045,20 @@
 t.com')%0A
+    
     prin
@@ -1126,16 +1126,20 @@
 =====')%0A
+    
     for 
@@ -1157,24 +1157,28 @@
 ks:%0A        
+    
 print(task)%0A
@@ -1177,16 +1177,20 @@
 t(task)%0A
+    
         
@@ -1266,18 +1266,73 @@
 =')%0A
-%0Adef remov
+    except TaskError:%0A        print('No tasks found.')%0A%0Adef delet
 e(id
@@ -1361,16 +1361,20 @@
 moveTask
+ById
 (id)%0A   
@@ -1439,16 +1439,29 @@
 args):%0A%0A
+    try:%0A    
     if d
@@ -1477,18 +1477,42 @@
 s%5B'new'%5D
-:%0A
+ or docopt_args%5B'n'%5D:%0A    
         
@@ -1517,16 +1517,20 @@
   new()%0A
+    
     elif
@@ -1549,18 +1549,152 @@
 %5B'show'%5D
-:%0A
+ or docopt_args%5B's'%5D:%0A            if docopt_args%5B'%3Cid%3E'%5D:%0A                print('Not currently implemented.')%0A            else:%0A        
         
@@ -1714,16 +1714,20 @@
 tUser()%0A
+    
     elif
@@ -1740,22 +1740,64 @@
 t_args%5B'
-remove
+delete'%5D or docopt_args%5B'del'%5D or docopt_args%5B'd
 '%5D:%0A    
@@ -1800,21 +1800,25 @@
         
-remov
+    delet
 e(docopt
@@ -1831,16 +1831,61 @@
 '%3Cid%3E'%5D)
+%0A    except KeyboardInterrupt:%0A        return
 %0A%0Aif __n

Refactor cli and rename options