Squashed 'libs/CommService/' content from commit 7ccc0fc
git-subtree-dir: libs/CommService git-subtree-split: 7ccc0fce88bbc5969df060058cf0fb57abe3bcf9
This commit is contained in:
23
libs/CLI11/examples/subcom_in_files/subcommand_a.hpp
Normal file
23
libs/CLI11/examples/subcom_in_files/subcommand_a.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2017-2022, 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);
|
||||
Reference in New Issue
Block a user