def _handleDescriptionOption(cmdArgStr, outDir, usageStr, hsVersion, claDescriptionTemplateFile):
 try:
  args = json.loads(cmdArgStr)
 except Exception as e:
  raise _InvalidCommandArgException(_makeUsageErrorStr((('JSON arg parsing failed for --description: %s\n' + 'ARG=<%s>') % (str(e), cmdArgStr)), usageStr))
 filesDescription = _generateExperiment(args, outDir, hsVersion=hsVersion, claDescriptionTemplateFile=claDescriptionTemplateFile)
 pprint.pprint(filesDescription)
 return

def _handleDescriptionOption ( cmdArgStr , outDir , usageStr , hsVersion , claDescriptionTemplateFile ) : try : args = json . loads ( cmdArgStr ) except Exception as e : raise _InvalidCommandArgException ( _makeUsageErrorStr ( ( ( 'JSON arg parsing failed for --description: %s\n' + 'ARG=<%s>' ) % ( str ( e ) , cmdArgStr ) ) , usageStr ) ) filesDescription = _generateExperiment ( args , outDir , hsVersion = hsVersion , claDescriptionTemplateFile = claDescriptionTemplateFile ) pprint . pprint ( filesDescription ) return
parses and validates the --description option args and executes the request parameters: cmdargstr: json string compatible with _gexperimentdescriptionschema outdir: where to place generated experiment files usagestr: program usage string hsversion: which version of hypersearch permutations file to generate .