MCPcopy Create free account
hub / github.com/apache/trafficserver / Args

Class Args

lib/catch2/catch.hpp:8826–8844  ·  view source on GitHub ↗

Transport for raw args (copied from main args, or supplied via init list for testing)

Source from the content-addressed store, hash-verified

8824
8825 // Transport for raw args (copied from main args, or supplied via init list for testing)
8826 class Args {
8827 friend TokenStream;
8828 std::string m_exeName;
8829 std::vector<std::string> m_args;
8830
8831 public:
8832 Args( int argc, char const* const* argv )
8833 : m_exeName(argv[0]),
8834 m_args(argv + 1, argv + argc) {}
8835
8836 Args( std::initializer_list<std::string> args )
8837 : m_exeName( *args.begin() ),
8838 m_args( args.begin()+1, args.end() )
8839 {}
8840
8841 auto exeName() const -> std::string {
8842 return m_exeName;
8843 }
8844 };
8845
8846 // Wraps a token coming from a token stream. These may not directly correspond to strings as a single string
8847 // may encode an option + its argument if the : or = form is used

Callers 1

applyCommandLineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected