We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960dba2 commit 6ec902cCopy full SHA for 6ec902c
betterproto/tests/generate.py
@@ -17,7 +17,7 @@ def generate(whitelist: Set[str]):
17
18
test_case_names = set(get_directories(inputs_path))
19
20
- for test_case_name in test_case_names:
+ for test_case_name in sorted(test_case_names):
21
test_case_path = os.path.join(inputs_path, test_case_name)
22
23
is_path_whitelisted = path_whitelist and os.path.realpath(test_case_path) in path_whitelist
@@ -51,7 +51,7 @@ def generate(whitelist: Set[str]):
51
52
53
def main():
54
- if sys.argv[1] in ('-h', '--help'):
+ if set(sys.argv).intersection({'-h', '--help'}):
55
print(HELP)
56
return
57
whitelist = set(sys.argv[1:])
0 commit comments