def main():
args = docopt(__doc__, version='flashcard 0.0.4')
if args['<flashcard>'].startswith("https://docs.google.com/spreadsheets/"):
flashcard = fetch_google_spreadsheet(args['<flashcard>'])
else:
print("<flashcard> should be URL of Google Spreadsheet (other sources are TBA)")
exit(1)
hint_rate = None
if args['--hint'] is not None:
hint_rate = float(args['--hint'])
assert 0.0 <= hint_rate <= 1.0, "hint rate should satisfy 0.0 <= hint_rate <= 1.0"
run(flashcard, hint_rate)
评论列表
文章目录