(prog, argv)
return launched_job
Main entry point for dsub.
Main entry point for dsub.
Main entry point for dsub .
def dsub_main(prog, argv):
  """Main entry point for dsub."""
  # Parse args and validate
  args = _parse_arguments(prog, argv)
  # intent:
  # * dsub tightly controls the output to stdout.
  # * wrap the main body such that output goes to stderr.
  # * only emit the job-id to stdout (which can then be used programmatically).
  with dsub_util.replace_print():
    launched_job = run_main(args)
  print(launched_job.get('job-id', ''))
  return launched_job
def dsub_main ( prog , argv ) : # Parse args and validate args = _parse_arguments ( prog , argv ) # intent: # * dsub tightly controls the output to stdout. # * wrap the main body such that output goes to stderr. # * only emit the job-id to stdout (which can then be used programmatically). with dsub_util . replace_print ( ) : launched_job = run_main ( args ) print ( launched_job . get ( 'job-id' , '' ) ) return launched_job