handle multiple filter patterns on the command-line again

This commit is contained in:
Simon Michael 2011-09-11 20:37:04 +00:00
parent b46ffbac14
commit fa5f09f06a
2 changed files with 13 additions and 1 deletions

View File

@ -310,7 +310,7 @@ toCliOpts rawopts = do
,quarterly_ = boolopt "quarterly" rawopts
,yearly_ = boolopt "yearly" rawopts
,format_ = maybestringopt "format" rawopts
,patterns_ = words'' prefixes $ singleQuoteIfNeeded $ stringopt "args" rawopts
,patterns_ = listofstringopt "args" rawopts
}
}

View File

@ -23,3 +23,15 @@ bin/hledger -f- register desc:'x x'
2010/03/02 x x a 1 1
b -1 0
>>>=0
#
# 3. multiple patterns, spaced and punctuated patterns
bin/hledger -f- register 'a a' "'b"
<<<
2011/9/11
a a 1
'b
>>>
2011/09/11 a a 1 1
'b -1 0
>>>=0