Project

General

Profile

« Previous | Next » 

Revision 14575

bin/tnrs_client: added env var to configure use_tnrs_export

View differences:

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

  
27 29
main()

Also available in: Unified diff