Commits

Jason R. Coombs committed 8a67581

Removed 'args' global

  • Participants
  • Parent commits 613933b
  • Tags 1.1.1

Comments (0)

Files changed (1)

jaraco/financial/ofx.py

 		return parser
 
 	@classmethod
-	def run(cls):
+	def run(cls, args):
 		creds = args.username, cls._get_password(args.site, args.username)
 		if not args.account:
 			# download account info
 		return parser
 
 	@classmethod
-	def run(cls):
+	def run(cls, args):
 		root = path.path('~/Documents/Financial').expanduser()
 		accounts = root / 'accounts.json'
 		with open(accounts) as f:
 	parser = argparse.ArgumentParser(usage=usage)
 	jaraco.util.logging.add_arguments(parser)
 	Command.add_subparsers(parser)
-	args = parser.parse_args()
-	globals().update(args = args)
-	return args
+	return parser.parse_args()
 
 def handle_command_line():
 	args = get_args()
 	jaraco.util.logging.setup(args)
 	load_sites()
-	args.action.run()
+	args.action.run(args)
 
-args = None
 if __name__ == "__main__":
 	handle_command_line()