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
0e5bb3ba
Commit
0e5bb3ba
authored
May 20, 2015
by
Jacek Sowiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make using flags possible with `topydo prompt`
parent
67a11cff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
topydo/cli/UILoader.py
topydo/cli/UILoader.py
+10
-1
No files found.
topydo/cli/UILoader.py
View file @
0e5bb3ba
...
...
@@ -17,13 +17,22 @@
""" Entry file for the Python todo.txt CLI. """
import
sys
import
getopt
from
topydo.cli.CLI
import
CLIApplication
from
topydo.cli.Prompt
import
PromptApplication
def
main
():
""" Main entry point of the CLI. """
try
:
if
sys
.
argv
[
1
]
==
'prompt'
:
args
=
sys
.
argv
[
1
:]
try
:
opts
,
args
=
getopt
.
getopt
(
args
,
"c:d:ht:v"
)
except
getopt
.
GetoptError
as
e
:
error
(
str
(
e
))
sys
.
exit
(
1
)
if
args
[
0
]
==
'prompt'
:
PromptApplication
().
run
()
else
:
CLIApplication
().
run
()
...
...
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