Return the argv offsets where the option with name was entered.

Synopsis

Declared in <balcl_commandline.h>

bsl::vector<int> const&
positions(std::string_view const& name) const;

Description

If the option was not specified, return an empty vector. Note that, in order to receive the valid positions, the command line must be successfully parsed.

Return Value

argv offsets where the named option was entered

Parameters

Name

Description

name

option name to look up

Created with MrDocs