AntaresSimulatorTeam / Antares_Simulator

Antares-Simulator is an Open Source power system simulator to quantify the adequacy or the economic performance of interconnected energy systems, at short or remote time horizons.
https://antares-simulator.org
Other
58 stars 24 forks source link

Replace Yuni::GetOpt::parser with something else #1819

Open JasonMarechal25 opened 9 months ago

JasonMarechal25 commented 9 months ago

GetOpt::parser is a Yuni component that parser the command line options.

In an effort to remove Yuni and tend to use industrial standards it would be best to replace it with more commonly used solutions.

Some potential (but not limited to) candidates are:

Some key points to consider to choose one over the other:

One interesting feature would be to be able to describe the options in a configuration file for better comprehension, readability and documentation.

payetvin commented 6 months ago

Boost: + already used in Antares - i find the syntax more complex than the other choices cxxopts: + lightweight, only a hpp file to include cli11: + only a hpp file argparse: easy to download with cmake as a dependency

flomnes commented 2 months ago

Another factor to consider is the ability to read parameters from a configuration file. Grouping CLI parameters & a config file in the same place would be much better than the current "manual" approach.