Project

General

Profile

« Previous | Next » 

Revision 5121

TNRS-related programs: Use "names" instead of "taxons" for variable names because what's being submitted are actually verbatim taxonomic names, not official references to specific taxa

View differences:

tnrs_client
18 18
    # Input
19 19
    env_names = []
20 20
    debug = opts.env_flag('debug', False, env_names)
21
    taxons = sys.argv[1:]
22
    if not taxons: raise SystemExit('Usage: '+opts.env_usage(env_names, True)
23
        +' '+sys.argv[0]+' taxon... >out 2>>log')
21
    names = sys.argv[1:]
22
    if not names: raise SystemExit('Usage: '+opts.env_usage(env_names, True)
23
        +' '+sys.argv[0]+' name... >out 2>>log')
24 24
    
25
    streams.copy(tnrs.repeated_tnrs_request(taxons, debug), sys.stdout)
25
    streams.copy(tnrs.repeated_tnrs_request(names, debug), sys.stdout)
26 26

  
27 27
main()

Also available in: Unified diff