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
d1368a7a
Commit
d1368a7a
authored
Dec 13, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit with sys.exit() instead of exit().
parent
f433fb24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
topydo/cli/Main.py
topydo/cli/Main.py
+5
-5
No files found.
topydo/cli/Main.py
View file @
d1368a7a
...
...
@@ -30,7 +30,7 @@ def usage():
-v : Print version and exit
"""
exit
(
0
)
sys
.
exit
(
0
)
def
write
(
p_file
,
p_string
):
"""
...
...
@@ -54,7 +54,7 @@ def version():
from
topydo.lib.Version
import
VERSION
,
LICENSE
print
"topydo %s
\
n
"
%
(
VERSION
)
print
LICENSE
exit
(
0
)
sys
.
exit
(
0
)
from
topydo.lib.Config
import
config
,
ConfigError
...
...
@@ -65,7 +65,7 @@ try:
config
()
except
ConfigError
as
config_error
:
error
(
str
(
config_error
))
exit
(
1
)
sys
.
exit
(
1
)
from
topydo.lib.AddCommand
import
AddCommand
from
topydo.lib.AppendCommand
import
AppendCommand
...
...
@@ -104,7 +104,7 @@ class CLIApplication(object):
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"c:d:ht:v"
)
except
getopt
.
GetoptError
as
e
:
error
(
str
(
e
))
exit
(
1
)
sys
.
exit
(
1
)
alt_path
=
None
alt_archive
=
None
...
...
@@ -210,7 +210,7 @@ class CLIApplication(object):
usage
()
if
self
.
execute
(
subcommand
,
args
)
==
False
:
exit
(
1
)
sys
.
exit
(
1
)
if
self
.
todolist
.
is_dirty
():
self
.
archive
()
...
...
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