Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 1ae1428

Browse files
committed
feat: added parsed_args vector to keep track
1 parent 51f4bf9 commit 1ae1428

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wperf/arg_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ namespace ArgParser {
8484
{
8585
if (current_flag->parse(raw_args)) {
8686
raw_args.erase(raw_args.begin(), raw_args.begin() + current_flag->get_arg_count() + 1);
87+
parsed_args.push_back(current_flag);
8788
}
8889
}
8990
catch (const std::exception& err)
@@ -104,7 +105,6 @@ namespace ArgParser {
104105
void arg_parser::print_help() const
105106
{
106107
m_out.GetOutputStream() << L"NAME:\n"
107-
108108
<< L"\twperf - Performance analysis tools for Windows on Arm\n\n"
109109
<< L"\tUsage: wperf <command> [options]\n\n"
110110
<< L"SYNOPSIS:\n\n";

wperf/arg_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ namespace ArgParser {
425425
&export_perf_data_opt,
426426
&extra_args_arg
427427
};
428-
428+
std::vector<arg_parser_arg*> parsed_args = {};
429429
wstr_vec m_arg_array;
430430

431431
#pragma endregion

0 commit comments

Comments
 (0)