kopia lustrzana https://github.com/jupyterhub/repo2docker
adding note to future developers about why version is checked first
rodzic
80d7ec9ff3
commit
21f698c1b7
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue