Commit d1d86b0f authored by Jacek Sowiński's avatar Jacek Sowiński

Update synopsis and help message of `topydo edit`

parent c91d56bc
......@@ -133,11 +133,24 @@ class EditCommand(MultiCommand, ListCommand):
'Check your $EDITOR and/or $PATH')
def usage(self):
return """Synopsis: edit"""
return """Synopsis:
edit
edit <NUMBER1> [<NUMBER2> ...]
edit -e [-x] [expression]"""
def help(self):
return """Launches a text editor with the todo.txt file.
return """\
Launches a text editor to edit todos.
Without any arguments it will just open todo.txt file. Alternatively it can
edit todo item(s) with the given number(s) or edit relevant todos matching
given expression. Definition of relevant todo is given in the help message
of `ls` command.
By default it will use $EDITOR in your environment, otherwise it will fall back
to 'vi'.
-e : Treat the subsequent arguments as an expression.
-x : Edit *all* todos matching the expression (i.e. do not filter on
dependencies or relevance).
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment