examples/subcom_in_files/subcommand_a.cpp
/// The function that runs our code.
/// This could also simply be in the callback lambda itself,
/// but having a separate function is cleaner.
The function that runs our code.
This could also simply be in the callback lambda itself,
but having a separate function is cleaner.
The function that runs our code . This could also simply be in the callback lambda itself but having a separate function is cleaner .
void run_subcommand_a(SubcommandAOptions const &opt) {
    std::cout << "Working on file: " << opt.file << std::endl;
    if(opt.with_foo) {
        std::cout << "Using foo!" << std::endl;
    }
}
void run_subcommand_a ( SubcommandAOptions const & opt ) { std :: cout << " " << opt . file << std :: endl ; if ( opt . with_foo ) { std :: cout << " " << std :: endl ; } }
The function that runs our code.
The function that runs our code .
// Do stuff...