Skip to content

Commit

Permalink
Check if args have the correct length
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Jan 19, 2024
1 parent df4bd82 commit d536f67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

def main():

if (len(sys.argv) <= 1):
print("Please specify a command.")
return

command = sys.argv[1]

flags_list = sys.argv[2:]

client_flag = "--client" in flags_list
Expand Down

0 comments on commit d536f67

Please sign in to comment.