58 auto args = ctx.
args.
get<std::vector<std::string>>(
"args");
70 struct StatusCommandDefinition
74 std::string legacyOption;
76 const std::vector<StatusCommandDefinition> statusCommands{
77 {
"status",
"show",
"-v"},
78 {
"face",
"list",
"-f"},
79 {
"channel",
"list",
"-c"},
80 {
"strategy",
"list",
"-s"},
81 {
"fib",
"list",
"-b"},
82 {
"route",
"list",
"-r"}
84 for (
const StatusCommandDefinition& scd : statusCommands) {
88 parser.
addAlias(
"status",
"show",
"list");
95 const std::vector<std::string> legacyNfdcSubcommands{
105 for (
const std::string& subcommand : legacyNfdcSubcommands) {
context for command execution
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
const CommandArguments & args