help="sets the verbosity level [default: %default]")
parser.add_option("-s","--script",action="callback",default=[],dest="script",type="string",callback=parse_script_option,help="executes a script (syntax: -s SCRIPT [options] [args]) Anything that follows this option is passed to the script")
parser.add_option("-p","--pdb_id",dest="pdb_ids",default=[],action="append",help="PDB file ID. The file will be retrieved from PDB")
parser.add_option("-b","--builder",dest="builder",default="HEURISTIC",help="Type of builder used by the progam (either RULE_BASED or HEURISTIC) [default: %default]")
parser.add_option("-c","--compound_library",dest="complib",default="compounds.chemlib",help="Compound library for the RULE_BASED builder (only used if --builder option is set to RULE_BASED, otherwise ignored [default: %default]")
parser.add_option("-q","--query",dest="query",default="",help="Selection query to be highlighted automatically upon loading (only used together with -p option or when a PDB file is loaded, otherwise ignored [default: None]")
parser.add_option("-S","--stereo",dest="try_stereo",default=False,action="store_true",help="try to get a quad-buffer stereo visual")
parser.disable_interspersed_args()
(options,args)=parser.parse_args()
iflen(parser.rargs)!=0:
forrargs_stringinparser.rargs:
ifnotrargs_string.endswith('.py'):
loading_list.append(rargs_string)
else:
print'Error: one of the files to load is a Python script, use -s flag to execute it\n'
help="sets the verbosity level [default: %default]")
parser.add_option("-s","--script",action="callback",default=[],dest="script",type="string",callback=parse_script_option,help="executes a script (syntax: -s SCRIPT [options] [args]) Anything that follows this option is passed to the script")
parser.add_option("-p","--pdb_id",dest="pdb_ids",default=[],action="append",help="PDB file ID. The file will be retrieved from PDB")
parser.add_option("-b","--builder",dest="builder",default="HEURISTIC",help="Type of builder used by the progam (either RULE_BASED or HEURISTIC) [default: %default]")
parser.add_option("-c","--compound_library",dest="complib",default="compounds.chemlib",help="Compound library for the RULE_BASED builder (only used if --builder option is set to RULE_BASED, otherwise ignored [default: %default]")
parser.add_option("-q","--query",dest="query",default="",help="Selection query to be highlighted automatically upon loading (only used together with -p option or when a PDB file is loaded, otherwise ignored [default: None]")
parser.add_option("-S","--stereo",dest="try_stereo",default=False,action="store_true",help="try to get a quad-buffer stereo visual")
parser.disable_interspersed_args()
(options,args)=parser.parse_args()
iflen(parser.rargs)!=0:
forrargs_stringinparser.rargs:
ifnotrargs_string.endswith('.py'):
loading_list.append(rargs_string)
else:
print'Error: one of the files to load is a Python script, use -s flag to execute it\n'