C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A draft for a std::arguments proposal

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Tue, 1 Oct 2024 02:12:15 +0300
On 10/1/24 01:55, Jeremy Rifkin wrote:
>
>> I think, std::arguments name is too generic and may encroach on
>> something
>> associated with function arguments in the future. And the name is
>> confusing
>> today for the same reason.
>
> Good points. I went with std::arguments because that's the form the
> committee had previously considered.
>
> I think program_options and command_line would be confusing, the first
> because of being different from Boost.ProgramOptions and the second
> because it's not the full command line, just arguments

What's the distinction? Conventionally, command line is the executable
name followed by arguments, and that's exactly what argv is. My
understanding that the proposed std::arguments (however it is named) is
equivalent to argv, i.e. std::arguments[0] produces the executable name.
Is it not?

Received on 2024-09-30 23:12:19