handle multiple filter patterns on the command-line again
This commit is contained in:
		
							parent
							
								
									b46ffbac14
								
							
						
					
					
						commit
						fa5f09f06a
					
				@ -310,7 +310,7 @@ toCliOpts rawopts = do
 | 
				
			|||||||
                            ,quarterly_ = boolopt "quarterly" rawopts
 | 
					                            ,quarterly_ = boolopt "quarterly" rawopts
 | 
				
			||||||
                            ,yearly_    = boolopt "yearly" rawopts
 | 
					                            ,yearly_    = boolopt "yearly" rawopts
 | 
				
			||||||
                            ,format_    = maybestringopt "format" rawopts
 | 
					                            ,format_    = maybestringopt "format" rawopts
 | 
				
			||||||
                            ,patterns_  = words'' prefixes $ singleQuoteIfNeeded $ stringopt "args" rawopts
 | 
					                            ,patterns_  = listofstringopt "args" rawopts
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
             }
 | 
					             }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -23,3 +23,15 @@ bin/hledger -f- register desc:'x x'
 | 
				
			|||||||
2010/03/02 x x                  a                                 1            1
 | 
					2010/03/02 x x                  a                                 1            1
 | 
				
			||||||
                                b                                -1            0
 | 
					                                b                                -1            0
 | 
				
			||||||
>>>=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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user