3 import sys, os, getopt, ann
6 out.write("usage:\tanndata -h\n")
7 out.write("\tanndata -l PREFIX\n")
8 out.write("\tanndata [-b] {-d|NAME}\n")
10 opts, args = getopt.getopt(sys.argv[1:], "hl:bd")
26 for s in ann.getlist(lsn):
27 sys.stdout.write("%s\n" % s.rawname)
30 nm = os.path.basename(os.getcwd)
38 sys.stderr.write("anndata: could not find %s\n" % nm)
42 sys.stderr.write("anndata: more than one match, using %s\n" % s.rawname)
44 os.execlp("htmlview", "htmlview", s.url)
46 sys.stdout.write("name: %s\n" % s.name)
47 sys.stdout.write("vintage: %s\n" % s.vintage)
48 sys.stdout.write("genres: %s\n" % ", ".join(s.genres))
49 sys.stdout.write("themes: %s\n" % ", ".join(s.themes))