cli_apply_args_files overloads

Synopses

Declared in <folly/cli/Args.h>

Applies args‐file expansion using the current working directory.

std::vector<std::string>
cli_apply_args_files(
    int argc,
    char const** argv);

Applies args‐file expansion using the current working directory.

std::vector<std::string>
cli_apply_args_files(
    int argc,
    char const const** argv);

Applies args‐file expansion to a list of arguments. Returns the expanded list of arguments. Throws cli_apply_args_files_error on any error (file not found, parse error).

std::vector<std::string>
cli_apply_args_files(
    std::filesystem::path const& current_dir,
    std::span<std::string const> args);

Applies args‐file expansion to a mutable C‐style argument array.

std::vector<std::string>
cli_apply_args_files(
    std::filesystem::path const& current_dir,
    int argc,
    char const** argv);

Applies args‐file expansion to a C‐style argument array.

std::vector<std::string>
cli_apply_args_files(
    std::filesystem::path const& current_dir,
    int argc,
    char const const** argv);

Applies args‐file expansion to a list of arguments. Uses the receiver interface for full control over processing.

void
cli_apply_args_files(
    cli_apply_args_files_receiver& receiver,
    std::filesystem::path const& current_dir,
    std::span<std::string const> args,
    cli_apply_args_files_options const& options = {});

Return Value

The expanded list of arguments.

Parameters

Name

Description

argc

The number of arguments.

argv

The argument array.

current_dir

The directory args‐file paths are resolved against.

args

The arguments to expand.

receiver

The receiver notified of each expansion event.

options

Options controlling the expansion.

Created with MrDocs