adding note to future developers about why version is checked first

pull/352/head
Vanessa Sochat 2018-07-16 06:47:59 -07:00
rodzic 80d7ec9ff3
commit 21f698c1b7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 55B56B9BF3B77E5C
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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)