init
This commit is contained in:
19
run.py
Executable file
19
run.py
Executable file
@@ -0,0 +1,19 @@
|
||||
from donationcalc import app
|
||||
from donationcalc import donationconfig
|
||||
import argparse
|
||||
|
||||
def parseArgs(parser):
|
||||
parser.add_argument("-r", "--rebalance", dest = "rebalance", help = "balance the monthly values", action="store_true")
|
||||
return parser.parse_args()
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
args = parseArgs(parser)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
if args.rebalance:
|
||||
donconf = donationconfig.donationconfig()
|
||||
donconf.rebalance()
|
||||
exit()
|
||||
|
||||
app.run(debug=False)
|
Reference in New Issue
Block a user