Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
fix help display if tdo is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
h4llow3En committed Nov 6, 2015
1 parent abfa0d5 commit 63c73af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tdo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ def displayhelp():
'''
Display the help page.
'''
with open('todolist/help', 'r') as helpfile:
print(helpfile.read())
print(todolist.help)


def main(argv=sys.argv):
Expand Down
1 change: 1 addition & 0 deletions tdo/todolist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
from .persistence import *
from .listing import *
from .maintenance import *
from .help import *
4 changes: 2 additions & 2 deletions tdo/todolist/help → tdo/todolist/help.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tdo -- A todo list tool for the terminal.
help='''tdo -- A todo list tool for the terminal.
Available commands:
tdo Lists all undone tasks, sorted by category.
Expand All @@ -11,4 +11,4 @@
If you specify a list name, only this list is cleared.
tdo lists List all lists with a statistic of undone/done tasks.
tdo help Display this help.
tdo reset DANGER ZONE. Delete all your todos and todo lists.
tdo reset DANGER ZONE. Delete all your todos and todo lists.'''

0 comments on commit 63c73af

Please sign in to comment.