allow passing argv to repo2docker.initialize
matching existing Applications
MODIFY
repo2docker/app.py
repo2docker/app.py
@@ -320,8 +320,10 @@ class Repo2Docker(Application):
exc_info=(etype, evalue, traceback),
extra=dict(phase='failed'))
- def initialize(self):
- args = self.get_argparser().parse_args()
+ def initialize(self, argv=None):
+ if argv is None:
+ argv = sys.argv[1:]
+ args = self.get_argparser().parse_args(argv)
if args.debug:
self.log_level = logging.DEBUG

allow passing argv to repo2docker.initialize

matching existing Applications