added alias for "list" as "ls" for compatability with todo.sh
This commit is contained in:
parent
f76101410c
commit
0730094a86
2 changed files with 5 additions and 5 deletions
|
@ -12,8 +12,8 @@ OddJob requires perl5, but should work with any reasonably current version. It d
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
oj add <time> <category> <description>
|
oj add <time> <category> <description>
|
||||||
oj list [string]
|
oj list|ls [string]
|
||||||
oj list [-lines]
|
oj list|ls [-lines]
|
||||||
oj edit <id> (date|time|cat|desc)=<new value>
|
oj edit <id> (date|time|cat|desc)=<new value>
|
||||||
|
|
||||||
To add a new entry:
|
To add a new entry:
|
||||||
|
|
6
oj
6
oj
|
@ -80,7 +80,7 @@ elsif ($command eq 'edit') {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
elsif ($command eq 'list') {
|
elsif ($command eq 'list' or $command eq 'ls') {
|
||||||
|
|
||||||
my $args = join (' ', @ARGV);
|
my $args = join (' ', @ARGV);
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ sub usage (){
|
||||||
print "OddJob, a simple tool for tracking time.\n";
|
print "OddJob, a simple tool for tracking time.\n";
|
||||||
print "Usage:\n";
|
print "Usage:\n";
|
||||||
print " oj add <time> <category> <description>\n";
|
print " oj add <time> <category> <description>\n";
|
||||||
print " oj list [string]\n";
|
print " oj list|ls [string]\n";
|
||||||
print " oj list [-lines]\n";
|
print " oj list|ls [-lines]\n";
|
||||||
print " oj edit <id> (date|time|cat|desc)=<new value>\n";
|
print " oj edit <id> (date|time|cat|desc)=<new value>\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue