git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
9785e31
Branches
Tags
develop-client_server
master
typescript
fs-words.git
scripts
associate.py
query scripts
Christian Fraß
commited
9785e31
at 2017-03-19 21:20:53
associate.py
Blame
History
Raw
#!/usr/bin/env python3 import sys as _sys from helpers import * def error_syntax(): print("SYNTAX: translate.py <language> <lemma>") _sys.exit(-1) def main(args): tag = (error_syntax() if (len(args) < 1) else args.pop(0)) language = (None if (len(args) < 1) else args.pop(0)) macro( "associate", { "tag": tag, "language": language, }, ( "lemma", "language", ) ) main(_sys.argv[1:])