3 from gaworkflow.pipeline.retrieve_config import *
6 #Display help if no args are presented
10 options = getCombinedOptions()
11 msg_list = ['ERROR MESSAGES:']
12 if options.output_filepath is None:
13 msg_list.append(" Output filepath argument required. -o <filepath> or --output=<filepath>")
15 if options.flowcell is None:
16 msg_list.append(" Flow cell argument required. -f <flowcell> or --flowcell=<flowcell>")
18 if options.url is None:
19 msg_list.append(" URL argument required (-u <url> or --url=<url>), or entry\n" \
20 " in /etc/ga_frontend/ga_frontend.conf or ~/.ga_frontend.conf")
23 print '\n'.join(msg_list)
26 saveConfigFile(options.flowcell, options.url, options.output_filepath)
29 if __name__ == "__main__":
30 sys.exit(main(sys.argv[1:]))