Add usage
This commit is contained in:
parent
2d98660213
commit
c6cd28cda3
1 changed files with 10 additions and 1 deletions
11
reviews.py
11
reviews.py
|
@ -17,9 +17,18 @@ COMMANDS = {
|
|||
}
|
||||
|
||||
|
||||
def print_usage():
|
||||
print("Usage:")
|
||||
print("\tmrs\t\t\tFetch files and create merge requests for them")
|
||||
print("\tupdate-assignees\tUpdate assignees on MRs")
|
||||
print("\tcomments\t\tFetch all comments on MRs")
|
||||
print("\tmerge\t\t\tMerge all MRs")
|
||||
print("\ttest\t\t\tDebugging function")
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 2 or sys.argv[1] not in COMMANDS:
|
||||
print("Invalid command")
|
||||
print_usage()
|
||||
exit(2)
|
||||
|
||||
COMMANDS[sys.argv[1]](SUBMISSIONS)()
|
||||
|
|
Reference in a new issue