C++ Logo

std-proposals

Advanced search

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

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Mon, 30 Sep 2024 11:16:59 +0300
On September 30, 2024 3:47:08 AM Jeremy Rifkin via Std-Proposals
<std-proposals_at_[hidden]> wrote:

> Hi,
> I'm drafting a proposal to add std::arguments which would provide an
> encoding-friendly and modern interface for accessing program arguments.

[...]

> I'd very much appreciate comments, thoughts, and guidance.

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.

A few better alternatives are: program_arguments, command_line,
program_options.

Past experience: there exists Boost.ProgramOptions, which is a well known
library for working with command line. While the library design and goals
are very different from the proposal, it sets existing nomenclature for the
problem domain.

Received on 2024-09-30 08:17:05