ImFusion C++ SDK 4.5.0
ImFusion::Labels::Args Namespace Reference

Parsing of the Labels command line arguments. More...

Detailed Description

Parsing of the Labels command line arguments.

See the help message for what the individual options do.

Classes

struct  OpenProjectCommand
struct  AnnotateCommand
struct  ExportCommand
struct  NoCommand
struct  ParsedArgs

Typedefs

using Command = std::variant<OpenProjectCommand, AnnotateCommand, ExportCommand, NoCommand>

Functions

Utils::Expected< ParsedArgs, int > parse (int argc, char **argv)
 Parses command-line arguments into a command.

Function Documentation

◆ parse()

Utils::Expected< ParsedArgs, int > ImFusion::Labels::Args::parse ( int argc,
char ** argv )

Parses command-line arguments into a command.

On failure (bad args) or early exit (–help), all output is written to stdout/stderr internally and the appropriate exit code is returned as the error value.

Search Tab / S to search, Esc to close