code: def build(args, parser):
      
  
      if args is None:
          raise Exception("arguments not provided")
  
      try:
          json_spec = _parse_executable_spec(args.src_dir, "dxworkflow.json", parser)
          workflow_id = _build_or_update_workflow(json_spec, args)
          _print_output(workflow_id, args)
      except WorkflowBuilderException as e:
          print("Error: %s" % (e.args,), file=sys.stderr)
          sys.exit(3)
docs: Validates workflow source directory and creates a new (global) workflow based on it.
      Raises: WorkflowBuilderException if the workflow cannot be created.