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
28fbec77
Commit
28fbec77
authored
Nov 29, 2015
by
MinchinWeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document `ls`' 'n' switch
parent
93544521
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
topydo/commands/ListCommand.py
topydo/commands/ListCommand.py
+3
-2
No files found.
topydo/commands/ListCommand.py
View file @
28fbec77
...
@@ -73,7 +73,7 @@ class ListCommand(ExpressionCommand):
...
@@ -73,7 +73,7 @@ class ListCommand(ExpressionCommand):
try
:
try
:
self
.
limit
=
int
(
value
)
self
.
limit
=
int
(
value
)
except
ValueError
:
except
ValueError
:
pass
# use default value in configuration
pass
# use default value in configuration
elif
opt
==
'-i'
:
elif
opt
==
'-i'
:
self
.
ids
=
value
.
split
(
','
)
self
.
ids
=
value
.
split
(
','
)
...
@@ -142,7 +142,7 @@ class ListCommand(ExpressionCommand):
...
@@ -142,7 +142,7 @@ class ListCommand(ExpressionCommand):
def
usage
(
self
):
def
usage
(
self
):
return
"""Synopsis: ls [-x] [-s <sort_expression>] [-f <output format>]
return
"""Synopsis: ls [-x] [-s <sort_expression>] [-f <output format>]
[-F <format string>] [expression]"""
[-F <format string>] [
-i <item numbers>] [-n <integer>] [
expression]"""
def
help
(
self
):
def
help
(
self
):
return
"""
\
return
"""
\
...
@@ -193,6 +193,7 @@ When an expression is given, only the todos matching that expression are shown.
...
@@ -193,6 +193,7 @@ When an expression is given, only the todos matching that expression are shown.
A tab character serves as a marker to start right alignment.
A tab character serves as a marker to start right alignment.
-i : Comma separated list of todo IDs to print.
-i : Comma separated list of todo IDs to print.
-n : Number of items to display. Defaults to the value in the configuration.
-s : Sort the list according to a sort expression. Defaults to the expression
-s : Sort the list according to a sort expression. Defaults to the expression
in the configuration.
in the configuration.
-x : Show all todos (i.e. do not filter on dependencies or relevance).
-x : Show all todos (i.e. do not filter on dependencies or relevance).
...
...
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