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
a61d22d7
Commit
a61d22d7
authored
May 21, 2015
by
Jacek Sowiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Main opts string as constant in CLIApplictionsBase
parent
0e5bb3ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
topydo/cli/CLIApplicationBase.py
topydo/cli/CLIApplicationBase.py
+3
-1
topydo/cli/UILoader.py
topydo/cli/UILoader.py
+2
-1
No files found.
topydo/cli/CLIApplicationBase.py
View file @
a61d22d7
...
...
@@ -21,6 +21,8 @@ import sys
from
six
import
PY2
from
six.moves
import
input
MAIN_OPTS
=
"c:d:ht:v"
def
usage
():
""" Prints the command-line usage of topydo. """
...
...
@@ -124,7 +126,7 @@ class CLIApplicationBase(object):
args
=
[
arg
.
decode
(
'utf-8'
)
for
arg
in
args
]
try
:
opts
,
args
=
getopt
.
getopt
(
args
,
"c:d:ht:v"
)
opts
,
args
=
getopt
.
getopt
(
args
,
MAIN_OPTS
)
except
getopt
.
GetoptError
as
e
:
error
(
str
(
e
))
sys
.
exit
(
1
)
...
...
topydo/cli/UILoader.py
View file @
a61d22d7
...
...
@@ -18,6 +18,7 @@
import
sys
import
getopt
from
topydo.cli.CLIApplicationBase
import
MAIN_OPTS
from
topydo.cli.CLI
import
CLIApplication
from
topydo.cli.Prompt
import
PromptApplication
...
...
@@ -27,7 +28,7 @@ def main():
args
=
sys
.
argv
[
1
:]
try
:
opts
,
args
=
getopt
.
getopt
(
args
,
"c:d:ht:v"
)
opts
,
args
=
getopt
.
getopt
(
args
,
MAIN_OPTS
)
except
getopt
.
GetoptError
as
e
:
error
(
str
(
e
))
sys
.
exit
(
1
)
...
...
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