When multiple files are specified with multiple -f options, we now parse each one individually, rather than just concatenating them, so they can have different formats. Directives (like default year or account aliases) no longer carry over from one file to the next. Limitation or feature ?
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # 1. all data files on the command line should be read
 | |
| hledger inc -f personal.journal -f business.journal
 | |
| >>>
 | |
| Income Statement
 | |
| 
 | |
| Revenues:
 | |
| --------------------
 | |
|                    0
 | |
| 
 | |
| Expenses:
 | |
|                   $2  expenses
 | |
|                   $1    food
 | |
|                   $1    office supplies
 | |
| --------------------
 | |
|                   $2
 | |
| 
 | |
| Total:
 | |
| --------------------
 | |
|                   $2
 | |
| >>>2
 | |
| >>>=0
 | |
| 
 | |
| # 2. aliases etc. in files currently don't carry over to subsequent files
 | |
| hledger print -f personal.journal -f business.journal -f alias.journal -f personal.journal
 | |
| >>>
 | |
| 2014/01/01
 | |
|     expenses:office supplies            $1
 | |
|     assets:business checking           $-1
 | |
| 
 | |
| 2014/01/02
 | |
|     expenses:food            $1
 | |
|     assets:cash             $-1
 | |
| 
 | |
| 2014/01/02
 | |
|     expenses:food            $1
 | |
|     assets:cash             $-1
 | |
| 
 | |
| >>>2
 | |
| >>>=0
 | |
| # 2014/01/02
 | |
| #     equity:draw:personal:food            $1
 | |
| #     assets:personal:cash                $-1
 | |
| 
 | |
| 
 | |
| # 3. files can be of different formats
 | |
| hledger print -f personal.journal -f a.timeclock -f b.timedot
 | |
| >>>
 | |
| 2014/01/02
 | |
|     expenses:food            $1
 | |
|     assets:cash             $-1
 | |
| 
 | |
| 2016/01/01 * 12:00-16:00
 | |
|     (a:aa)         4.00h
 | |
| 
 | |
| 2016/01/01 *
 | |
|     (b.bb)          1.00
 | |
| 
 | |
| >>>=0
 |