Commits

Andy Mikhailenko committed a8021d6

cli: do not ask for description if amended fact already has one

  • Participants
  • Parent commits d0c2e12

Comments (0)

Files changed (1)

File timetra/cli/__init__.py

             yield failure(u'Operation cancelled.')
             return
 
-    if args.description or args.no_input:
+    if args.description:
         description = args.description
+    if args.no_input:
+        pass
+    elif args.amend and prev.description:
+        # updating a fact that already has a description
+        pass
     else:
         # collect multi-line description from interactive user input
         lines = []