chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ypp-restock-rum: Allow cost[s] and price[s] as cmdline keywords
[ypp-sc-tools.web-live.git]
/
ypp-restock-rum
diff --git
a/ypp-restock-rum
b/ypp-restock-rum
index ab56abd3f14fd1ca862d0619dedad5c28fb905a9..3d9eb21e25da7f6899d21e792143c625681ef8f9 100755
(executable)
--- a/
ypp-restock-rum
+++ b/
ypp-restock-rum
@@
-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');
parse_info(1,0,1, @{ $have[@have] }, 'have');
} elsif (m/^want$/) {
parse_info(1,0,0, @want, 'want');
- } elsif (m/^price$/) {
+ } elsif (m/^price
s?$|^costs?
$/) {
parse_info(0,1e7,0, @price, 'price');
} else {
badusage("unknown information argument \`$_'");
parse_info(0,1e7,0, @price, 'price');
} else {
badusage("unknown information argument \`$_'");