chiark / gitweb /
ypp-restock-rum: Allow cost[s] and price[s] as cmdline keywords
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Tue, 26 May 2009 01:05:37 +0000 (02:05 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Tue, 26 May 2009 01:05:37 +0000 (02:05 +0100)
ypp-restock-rum

index ab56abd..3d9eb21 100755 (executable)
@@ -84,7 +84,7 @@ sub parse_args () {
            parse_info(1,0,1, @{ $have[@have] }, 'have');
        } elsif (m/^want$/) {
            parse_info(1,0,0, @want, 'want');
-       } elsif (m/^price$/) {
+       } elsif (m/^prices?$|^costs?$/) {
            parse_info(0,1e7,0, @price, 'price');
        } else {
            badusage("unknown information argument \`$_'");