Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
e3b461e9
Commit
e3b461e9
authored
9 years ago
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25 from mruwek/prompt-fix-help
Fix help in prompt-mode
parents
83b84fa5
fc00dce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
topydo/cli/Prompt.py
topydo/cli/Prompt.py
+10
-7
No files found.
topydo/cli/Prompt.py
View file @
e3b461e9
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
import
sys
import
sys
from
topydo.cli.CLIApplicationBase
import
CLIApplicationBase
,
error
from
topydo.cli.CLIApplicationBase
import
CLIApplicationBase
,
error
,
usage
from
topydo.cli.TopydoCompleter
import
TopydoCompleter
from
topydo.cli.TopydoCompleter
import
TopydoCompleter
from
prompt_toolkit.shortcuts
import
get_input
from
prompt_toolkit.shortcuts
import
get_input
from
prompt_toolkit.history
import
History
from
prompt_toolkit.history
import
History
...
@@ -66,14 +66,17 @@ class PromptApplication(CLIApplicationBase):
...
@@ -66,14 +66,17 @@ class PromptApplication(CLIApplicationBase):
(
subcommand
,
args
)
=
get_subcommand
(
user_input
)
(
subcommand
,
args
)
=
get_subcommand
(
user_input
)
if
self
.
_execute
(
subcommand
,
args
)
!=
False
:
try
:
if
self
.
todolist
.
is_dirty
():
if
self
.
_execute
(
subcommand
,
args
)
!=
False
:
self
.
_archive
()
if
self
.
todolist
.
is_dirty
():
self
.
_archive
()
if
config
().
keep_sorted
():
if
config
().
keep_sorted
():
self
.
_execute
(
SortCommand
,
[])
self
.
_execute
(
SortCommand
,
[])
self
.
todofile
.
write
(
str
(
self
.
todolist
))
self
.
todofile
.
write
(
str
(
self
.
todolist
))
except
TypeError
:
usage
()
def
main
():
def
main
():
""" Main entry point of the CLI. """
""" Main entry point of the CLI. """
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment