@@ -25,7 +25,10 @@ def main():
25
25
help = "Manually write new Transactions instead of file import." ,
26
26
required = False )
27
27
parser .add_argument ('-o' , '--output' , help = "output ledger file name" , required = True )
28
- parser .add_argument ('-c' , '--color' , action = "store_true" , help = "Turns on the colored output" , required = False )
28
+ parser .add_argument ('-C' , '--color' , action = "store_true" , help = "Turns on the colored output" ,
29
+ required = False )
30
+ parser .add_argument ('-c' , '--cache' , help = "Defines the cache file location. Defaults to ~/.lia-cache.csv" ,
31
+ required = False )
29
32
parser .add_argument ('-a' , '--import-account' , help = "Default import account" , required = True )
30
33
parser .add_argument ('-d' , '--date-format' , help = "date-format" , required = False )
31
34
parser .add_argument ('-w' , '--overwrite' , help = "Overwrite output file. Defaults to append" , required = False )
@@ -37,6 +40,8 @@ def main():
37
40
inputFile = argSet ('input' , args , lambda key , value : open (value , "r" ))
38
41
ruleList = argSet ('rules' , args , lambda key , value : rules .parseRuleList (value ))
39
42
promptColor = argSet ('color' , args , lambda key , value : True )
43
+ cacheFileSRC = argSet ('cache' , args , lambda key , value : value ,
44
+ failReturn = os .path .expanduser ('~' ) + os .sep + ".lia-cache.csv" )
40
45
41
46
# if(args['input']):
42
47
# inputFile = open(args['input'], "r")
@@ -50,7 +55,6 @@ def main():
50
55
51
56
manualInput = args ['manual' ]
52
57
outputFile = backend .openOutputFile (args ['output' ], args ['overwrite' ])
53
- cacheFileSRC = os .path .expanduser ('~' ) + os .sep + ".lia-cache.csv"
54
58
importAccount = args ['import_account' ]
55
59
dateFormat = "%m/%d/%Y"
56
60
0 commit comments