Source:
<code>public WorkflowStatusChecker() { super(); parser.acceptsAll(Arrays.asList("status-cmd", "s"), "Optional: the Pegasus status command, if you specify this option the command will be run, potentially displaying the summarized/parsed errors, but the database will not be updated.").withRequiredArg(); parser.acceptsAll(Arrays.asList(workflowRunAccession, "wra"), "Optional: this will cause the program to only check the status of workflow run(s). For multiple runs, comma-separate with no spaces").withRequiredArg().withValuesSeparatedBy(',').ofType(Integer.class); parser.acceptsAll(Arrays.asList("workflow-accession", "wa"), "Optional: this will cause the program to only check the status of workflow runs that are this type of workflow.").withRequiredArg(); parser.acceptsAll(Arrays.asList("force-host", "fh"), "Optional: if specified, workflow runs scheduled to this specified host will be checked even if this is not the current host (a dangerous option).").withRequiredArg(); parser.acceptsAll(Arrays.asList("check-failed", "cf"), "Optional: if specified, workflow runs that have previously failed will be re-checked."); parser.acceptsAll(Arrays.asList("threads-in-thread-pool", "tp"), "Optional: this will determine the number of threads to run with. Default: 1").withRequiredArg().ofType(Integer.class); <START> parser.acceptsAll(Arrays.asList("custom-lock-file", "clf"), <END> "Optional: This option is discouraged and unsupported. A custom lock-file allows multiple workflow status checkers " + "and workflow launchers to run at the same time, but could lead to a corrupt state in the metadb").withRequiredArg(); classReturnValue.setExitStatus(ReturnValue.SUCCESS); }</code><technical_language>Replace 'dynamic-lock-file' creates a lock filename unique webservice (e.g., escape URL)</technical_language>

Target:
public WorkflowStatusChecker() { super(); parser.acceptsAll(Arrays.asList("status-cmd", "s"), "Optional: the Pegasus status command, if you specify this option the command will be run, potentially displaying the summarized/parsed errors, but the database will not be updated.").withRequiredArg(); parser.acceptsAll(Arrays.asList(WORKFLOW_RUN_ACCESSION, "wra"), "Optional: this will cause the program to only check the status of workflow run(s). For multiple runs, comma-separate with no spaces").withRequiredArg().withValuesSeparatedBy(',').ofType(Integer.class); parser.acceptsAll(Arrays.asList("workflow-accession", "wa"), "Optional: this will cause the program to only check the status of workflow runs that are this type of workflow.").withRequiredArg(); parser.acceptsAll(Arrays.asList("force-host", "fh"), "Optional: if specified, workflow runs scheduled to this specified host will be checked even if this is not the current host (a dangerous option).").withRequiredArg(); parser.acceptsAll(Arrays.asList("check-failed", "cf"), "Optional: if specified, workflow runs that have previously failed will be re-checked."); parser.acceptsAll(Arrays.asList("threads-in-thread-pool", "tp"), "Optional: this will determine the number of threads to run with. Default: 1").withRequiredArg().ofType(Integer.class); parser.acceptsAll(Arrays.asList("dynamic-lock-file", "dlf"), "Optional: This option is discouraged and unsupported. A unique lock-file based on the SW_REST_URL is generated. " + "This allows multiple workflow status checkers and workflow launchers to run at the same time, " + "but could lead to a corrupt state in the metadb"); classReturnValue.setExitStatus(ReturnValue.SUCCESS); }