diff --git a/trade.py b/trade.py index 389cffe4..8ea9be09 100755 --- a/trade.py +++ b/trade.py @@ -1043,7 +1043,8 @@ def main(): tdb = TradeDB(debug=args.debug, dbFilename=args.db) # run the commands - return args.proc(args) + commandFunction = args.proc + return commandFunction(args) ######################################################################