added alias for "list" as "ls" for compatability with todo.sh

This commit is contained in:
foo 2011-07-20 15:59:18 +01:00
parent f76101410c
commit 0730094a86
2 changed files with 5 additions and 5 deletions

6
oj
View file

@ -80,7 +80,7 @@ elsif ($command eq 'edit') {
}
elsif ($command eq 'list') {
elsif ($command eq 'list' or $command eq 'ls') {
my $args = join (' ', @ARGV);
@ -111,8 +111,8 @@ sub usage (){
print "OddJob, a simple tool for tracking time.\n";
print "Usage:\n";
print " oj add <time> <category> <description>\n";
print " oj list [string]\n";
print " oj list [-lines]\n";
print " oj list|ls [string]\n";
print " oj list|ls [-lines]\n";
print " oj edit <id> (date|time|cat|desc)=<new value>\n";
exit;
}