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
40f02d4f
Commit
40f02d4f
authored
Oct 19, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename method for consistency.
parent
f05da0e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Command.py
Command.py
+3
-3
DoCommand.py
DoCommand.py
+1
-1
ListCommand.py
ListCommand.py
+1
-1
No files found.
Command.py
View file @
40f02d4f
...
...
@@ -27,7 +27,7 @@ class Command(object):
p_args is a list of arguments that can be passed to this subcommand.
These can be retrieved with argument(), or the existence of an argument
using argument
S
hift().
using argument
_s
hift().
p_todolist is a reference to the todolist instance to operate on.
...
...
@@ -53,7 +53,7 @@ class Command(object):
Execute the command. Intercepts the help subsubcommand to show the help
text.
"""
if
self
.
argument
S
hift
(
"help"
):
if
self
.
argument
_s
hift
(
"help"
):
self
.
error
(
self
.
usage
()
+
"
\
n
\
n
"
+
self
.
help
())
return
False
...
...
@@ -69,7 +69,7 @@ class Command(object):
return
value
def
argument
S
hift
(
self
,
p_expr
):
def
argument
_s
hift
(
self
,
p_expr
):
"""
Returns true when the first argument equals the given expression.
"""
...
...
DoCommand.py
View file @
40f02d4f
...
...
@@ -30,7 +30,7 @@ class DoCommand(Command):
super
(
DoCommand
,
self
).
__init__
(
p_args
,
p_todolist
,
p_out
,
p_err
,
p_prompt
)
self
.
number
=
None
self
.
force
=
self
.
argument
Shift
(
"--force"
)
or
self
.
argumentS
hift
(
"-f"
)
self
.
force
=
self
.
argument
_shift
(
"--force"
)
or
self
.
argument_s
hift
(
"-f"
)
try
:
self
.
number
=
convert_todo_number
(
self
.
argument
(
0
))
...
...
ListCommand.py
View file @
40f02d4f
...
...
@@ -30,7 +30,7 @@ class ListCommand(Command.Command):
if
not
super
(
ListCommand
,
self
).
execute
():
return
False
show_all
=
self
.
argument
S
hift
(
"-x"
)
show_all
=
self
.
argument
_s
hift
(
"-x"
)
sorter
=
Sorter
.
Sorter
(
Config
.
SORT_STRING
)
filters
=
[]
if
show_all
else
[
Filter
.
DependencyFilter
(
self
.
todolist
),
Filter
.
RelevanceFilter
()]
...
...
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