Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
CliParser.hpp File Reference

Command-line argument parsing for correlation-cli. More...

#include "analysis/AnalysisTypes.hpp"
#include "cli/ConvertCommand.hpp"
#include "math/Smoothing.hpp"
#include <span>
#include <string>
Include dependency graph for CliParser.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  correlation::cli::CliOptions
 All options that can be set via the command line. More...

Namespaces

namespace  correlation
namespace  correlation::cli

Functions

void correlation::cli::printUsage (const char *program)
 Prints the usage / help message to stderr.
bool correlation::cli::parseArgs (std::span< const char *const > argv, CliOptions &opts)
 Parses the command-line arguments into a CliOptions struct.
bool correlation::cli::parseArgs (int argc, const char *const *argv, CliOptions &opts)
 C-style entry point overload forwarding to the span interface.

Detailed Description

Command-line argument parsing for correlation-cli.

Provides the CliOptions struct and the parseArgs / printUsage helpers used by the headless CLI entry point. Extracted into its own translation unit so that the parsing logic can be exercised by unit tests.

License
SPDX-License-Identifier: AGPL-3.0-only