Replaced "NUMBER" with "ITEM#" in help and shorthelp.
This makes the help output consistent with the syntax error messages of individual commands.
This commit is contained in:
58
todo.sh
58
todo.sh
@@ -44,12 +44,12 @@ shorthelp()
|
|||||||
addto DEST "TEXT TO ADD"
|
addto DEST "TEXT TO ADD"
|
||||||
addm "THINGS I NEED TO DO
|
addm "THINGS I NEED TO DO
|
||||||
MORE THINGS I NEED TO DO"
|
MORE THINGS I NEED TO DO"
|
||||||
append|app NUMBER "TEXT TO APPEND"
|
append|app ITEM# "TEXT TO APPEND"
|
||||||
archive
|
archive
|
||||||
command [ACTIONS]
|
command [ACTIONS]
|
||||||
del|rm NUMBER [TERM]
|
del|rm ITEM# [TERM]
|
||||||
dp|depri NUMBER[, NUMBER, NUMBER, ...]
|
dp|depri ITEM#[, ITEM#, ITEM#, ...]
|
||||||
do NUMBER[, NUMBER, NUMBER, ...]
|
do ITEM#[, ITEM#, ITEM#, ...]
|
||||||
help
|
help
|
||||||
list|ls [TERM...]
|
list|ls [TERM...]
|
||||||
listall|lsa [TERM...]
|
listall|lsa [TERM...]
|
||||||
@@ -57,10 +57,10 @@ shorthelp()
|
|||||||
listfile|lf SRC [TERM...]
|
listfile|lf SRC [TERM...]
|
||||||
listpri|lsp [PRIORITY]
|
listpri|lsp [PRIORITY]
|
||||||
listproj|lsprj
|
listproj|lsprj
|
||||||
move|mv NUMBER DEST [SRC]
|
move|mv ITEM# DEST [SRC]
|
||||||
prepend|prep NUMBER "TEXT TO PREPEND"
|
prepend|prep ITEM# "TEXT TO PREPEND"
|
||||||
pri|p NUMBER PRIORITY
|
pri|p ITEM# PRIORITY
|
||||||
replace NUMBER "UPDATED TODO"
|
replace ITEM# "UPDATED TODO"
|
||||||
report
|
report
|
||||||
|
|
||||||
See "help" for more details.
|
See "help" for more details.
|
||||||
@@ -91,9 +91,9 @@ help()
|
|||||||
Adds a line of text to any file located in the todo.txt directory.
|
Adds a line of text to any file located in the todo.txt directory.
|
||||||
For example, addto inbox.txt "decide about vacation"
|
For example, addto inbox.txt "decide about vacation"
|
||||||
|
|
||||||
append NUMBER "TEXT TO APPEND"
|
append ITEM# "TEXT TO APPEND"
|
||||||
app NUMBER "TEXT TO APPEND"
|
app ITEM# "TEXT TO APPEND"
|
||||||
Adds TEXT TO APPEND to the end of the todo on line NUMBER.
|
Adds TEXT TO APPEND to the end of the todo on line ITEM#.
|
||||||
Quotes optional.
|
Quotes optional.
|
||||||
|
|
||||||
archive
|
archive
|
||||||
@@ -103,18 +103,18 @@ help()
|
|||||||
Runs the remaining arguments using only todo.sh builtins.
|
Runs the remaining arguments using only todo.sh builtins.
|
||||||
Will not call any .todo.actions.d scripts.
|
Will not call any .todo.actions.d scripts.
|
||||||
|
|
||||||
del NUMBER [TERM]
|
del ITEM# [TERM]
|
||||||
rm NUMBER [TERM]
|
rm ITEM# [TERM]
|
||||||
Deletes the item on line NUMBER in todo.txt.
|
Deletes the item on line ITEM# in todo.txt.
|
||||||
If term specified, deletes only the term from the line.
|
If term specified, deletes only the term from the line.
|
||||||
|
|
||||||
depri NUMBER[, NUMBER, NUMBER, ...]
|
depri ITEM#[, ITEM#, ITEM#, ...]
|
||||||
dp NUMBER[, NUMBER, NUMBER, ...]
|
dp ITEM#[, ITEM#, ITEM#, ...]
|
||||||
Deprioritizes (removes the priority) from the item
|
Deprioritizes (removes the priority) from the item
|
||||||
on line NUMBER in todo.txt.
|
on line ITEM# in todo.txt.
|
||||||
|
|
||||||
do NUMBER[, NUMBER, NUMBER, ...]
|
do ITEM#[, ITEM#, ITEM#, ...]
|
||||||
Marks item(s) on line NUMBER as done in todo.txt.
|
Marks item(s) on line ITEM# as done in todo.txt.
|
||||||
|
|
||||||
help
|
help
|
||||||
Display this help message.
|
Display this help message.
|
||||||
@@ -149,26 +149,26 @@ help()
|
|||||||
lsprj
|
lsprj
|
||||||
Lists all the projects that start with the + sign in todo.txt.
|
Lists all the projects that start with the + sign in todo.txt.
|
||||||
|
|
||||||
move NUMBER DEST [SRC]
|
move ITEM# DEST [SRC]
|
||||||
mv NUMBER DEST [SRC]
|
mv ITEM# DEST [SRC]
|
||||||
Moves a line from source text file (SRC) to destination text file (DEST).
|
Moves a line from source text file (SRC) to destination text file (DEST).
|
||||||
Both source and destination file must be located in the directory defined
|
Both source and destination file must be located in the directory defined
|
||||||
in the configuration directory. When SRC is not defined
|
in the configuration directory. When SRC is not defined
|
||||||
it's by default todo.txt.
|
it's by default todo.txt.
|
||||||
|
|
||||||
prepend NUMBER "TEXT TO PREPEND"
|
prepend ITEM# "TEXT TO PREPEND"
|
||||||
prep NUMBER "TEXT TO PREPEND"
|
prep ITEM# "TEXT TO PREPEND"
|
||||||
Adds TEXT TO PREPEND to the beginning of the todo on line NUMBER.
|
Adds TEXT TO PREPEND to the beginning of the todo on line ITEM#.
|
||||||
Quotes optional.
|
Quotes optional.
|
||||||
|
|
||||||
pri NUMBER PRIORITY
|
pri ITEM# PRIORITY
|
||||||
p NUMBER PRIORITY
|
p ITEM# PRIORITY
|
||||||
Adds PRIORITY to todo on line NUMBER. If the item is already
|
Adds PRIORITY to todo on line ITEM#. If the item is already
|
||||||
prioritized, replaces current priority with new PRIORITY.
|
prioritized, replaces current priority with new PRIORITY.
|
||||||
PRIORITY must be an uppercase letter between A and Z.
|
PRIORITY must be an uppercase letter between A and Z.
|
||||||
|
|
||||||
replace NUMBER "UPDATED TODO"
|
replace ITEM# "UPDATED TODO"
|
||||||
Replaces todo on line NUMBER with UPDATED TODO.
|
Replaces todo on line ITEM# with UPDATED TODO.
|
||||||
|
|
||||||
report
|
report
|
||||||
Adds the number of open todo's and closed done's to report.txt.
|
Adds the number of open todo's and closed done's to report.txt.
|
||||||
|
|||||||
Reference in New Issue
Block a user