Skip to contents

Assembles arguments from the parsed argparse result and calls cli_nemo_s3sync(). When wf is non-NULL it overrides args$workflow (used by downstream packages that fix the workflow at the script level, e.g. tidywigits.R).

Usage

cli_s3sync_parse_args(args, wf = NULL)

Arguments

args

Named list of parsed CLI arguments, as returned by argparse. Expected fields: src, dest, workflow (may be NULL when wf is provided), include and exclude (may be NULL), dryrun, show_patterns, quiet, verbose (may be NULL).

wf

(character(1) or NULL)
Workflow override. When non-NULL, replaces args$workflow.

Examples

args <- list(
  src = "s3://bucket/run1", dest = tempfile(), workflow = NULL,
  dryrun = FALSE, show_patterns = TRUE, quiet = FALSE
)
out <- capture.output(cli_s3sync_parse_args(args, wf = "workflow1"))