Browse Source

Update index.py

pull/18/head
James Mc Dermott 3 years ago
committed by GitHub
parent
commit
9989600e63
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      scripts/index.py

+ 2
- 3
scripts/index.py View File

@@ -87,14 +87,13 @@ def main():
parser, (options, arguments), times, c, g, details = required()
if options.book:
booking_option(c, g, details)
elif len(details) > 5:
if len(details) > 5:
print("Too many arguments passed.")
elif options.lookup:
lookup_option(options, (c, g), details, times)
elif options.now:
now_option(options, c, g, times)
else:
parser.print_help()
parser.print_help()
if __name__ == '__main__':
main()


Loading…
Cancel
Save