14 return not fSingleCharName.has_value () and not fLongName.has_value ();
34 inline bool CommandLine::Has (
const Option& o)
const
37 if (
auto oRes = ParseOneArg_ (o, &argi); oRes and *oRes) {
45 auto r = get<Sequence<String>> (Get (o));
46 return r.empty () ? optional<String>{} : r[0];
54 return get<Sequence<String>> (Get (o));
56 inline auto CommandLine::GetStringShellQuoting () const -> optional<
StringShellQuoting>
58 return fShellStyleQuoting_;
60 inline void CommandLine::SetStringShellQuoting (
const optional<StringShellQuoting>& s)
62 fShellStyleQuoting_ = s;
66 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
inline Sequence<String> ParseCommandLine (
const String& cmdLine)
70 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
inline Sequence<String> ParseCommandLine (
int argc,
char* argv[])
74 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
inline Sequence<String> ParseCommandLine (
int argc,
const char* argv[])
78 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
inline Sequence<String> ParseCommandLine (
int argc,
wchar_t* argv[])
82 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
inline Sequence<String> ParseCommandLine (
int argc,
const wchar_t* argv[])
87 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
bool MatchesCommandLineArgument (
const String& actualArg,
const String& matchesArgPattern);
88 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]]
bool MatchesCommandLineArgument (
const Iterable<String>& argList,
89 const String& matchesArgPattern);
90 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]] optional<String>
91 MatchesCommandLineArgumentWithValue (
const String& actualArg,
const String& matchesArgPattern);
92 [[deprecated (
"Since Stroika v3.0d6 use CommandLine class")]] optional<String>
93 MatchesCommandLineArgumentWithValue (
const Iterable<String>& argList,
const String& matchesArgPattern);
A generalization of a vector: a container whose elements are keyed by the natural numbers.
nonvirtual Sequence< String > GetArguments() const
nonvirtual optional< String > GetArgument(const Option &o) const
An Iterator<T> is a copyable object which allows traversing the contents of some container....
constexpr bool IsPositionArgument() const