adding note to future developers about why version is checked first
MODIFY
repo2docker/app.py
repo2docker/app.py
@@ -367,6 +367,8 @@ class Repo2Docker(Application):
if argv is None:
argv = sys.argv[1:]
+ # version must be checked before parse, as repo/cmd are required and
+ # will spit out an error if allowed to be parsed first.
if '--version' in argv:
print(self.version)
sys.exit(0)

adding note to future developers about why version is checked first