folly::cli_apply_args_files

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);
» more...

Applies args-file expansion using the current working directory.

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

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);
» more...

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);
» more...

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);
» more...

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 = {});
» more...

Return Value

The expanded list of arguments.

Parameters

NameDescription
argcThe number of arguments.
argvThe argument array.
current_dirThe directory args-file paths are resolved against.
argsThe arguments to expand.
receiverThe receiver notified of each expansion event.
optionsOptions controlling the expansion.