incomestatement, cashflow: support --flat and --drop as well
This commit is contained in:
		
							parent
							
								
									5a8b5ed082
								
							
						
					
					
						commit
						d815cca069
					
				| @ -27,7 +27,10 @@ import Hledger.Cli.Balance | ||||
| cashflowmode = (defCommandMode ["cashflow","cf"]) { | ||||
|   modeHelp = "show a cashflow statement" `withAliases` ["cf"] | ||||
|  ,modeGroupFlags = Group { | ||||
|      groupUnnamed = [] | ||||
|      groupUnnamed = [ | ||||
|       flagNone ["flat"] (\opts -> setboolopt "flat" opts) "show full account names, unindented" | ||||
|      ,flagReq  ["drop"] (\s opts -> Right $ setopt "drop" s opts) "N" "with --flat, omit this many leading account name components" | ||||
|      ] | ||||
|     ,groupHidden = [] | ||||
|     ,groupNamed = [generalflagsgroup1] | ||||
|     } | ||||
|  | ||||
| @ -24,7 +24,10 @@ import Hledger.Cli.Balance | ||||
| incomestatementmode = (defCommandMode $ ["incomestatement"]++aliases) { | ||||
|   modeHelp = "show an income statement" `withAliases` aliases | ||||
|  ,modeGroupFlags = Group { | ||||
|      groupUnnamed = [] | ||||
|      groupUnnamed = [ | ||||
|       flagNone ["flat"] (\opts -> setboolopt "flat" opts) "show full account names, unindented" | ||||
|      ,flagReq  ["drop"] (\s opts -> Right $ setopt "drop" s opts) "N" "with --flat, omit this many leading account name components" | ||||
|      ] | ||||
|     ,groupHidden = [] | ||||
|     ,groupNamed = [generalflagsgroup1] | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user