mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 04:03:52 +00:00
* Add copyright check * Remove old license message * Implement suggestions from code review
24 lines
641 B
C++
24 lines
641 B
C++
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
|
|
// under NSF AWARD 1414736 and by the respective contributors.
|
|
// All rights reserved.
|
|
//
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#pragma once
|
|
|
|
#include <CLI/CLI.hpp>
|
|
#include <string>
|
|
|
|
/// Collection of all options of Subcommand A.
|
|
struct SubcommandAOptions {
|
|
std::string file;
|
|
bool with_foo;
|
|
};
|
|
|
|
// We could manually make a few variables and use shared pointers for each; this
|
|
// is just done this way to be nicely organized
|
|
|
|
// Function declarations.
|
|
void setup_subcommand_a(CLI::App &app);
|
|
void run_subcommand_a(SubcommandAOptions const &opt);
|