summaryrefslogtreecommitdiff
path: root/src/cli_shell_api.cpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-01-18 13:35:50 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-01-18 13:35:50 -0800
commitdbe4a4ee85b2968ae63415bd12080abba3b9a8df (patch)
tree5cd0c572b3b9ca822fde828aebce1f5bfffd3265 /src/cli_shell_api.cpp
parent5ec1f60e4c641a9e135fb9818e9a7334aa3180f7 (diff)
downloadvyatta-cfg-dbe4a4ee85b2968ae63415bd12080abba3b9a8df.tar.gz
vyatta-cfg-dbe4a4ee85b2968ae63415bd12080abba3b9a8df.zip
initial implementation of context diff
Diffstat (limited to 'src/cli_shell_api.cpp')
-rw-r--r--src/cli_shell_api.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cli_shell_api.cpp b/src/cli_shell_api.cpp
index 047bd4a..c04cf16 100644
--- a/src/cli_shell_api.cpp
+++ b/src/cli_shell_api.cpp
@@ -56,6 +56,7 @@ int op_show_active_only = 0;
int op_show_show_defaults = 0;
int op_show_hide_secrets = 0;
int op_show_working_only = 0;
+int op_show_context_diff = 0;
typedef void (*OpFuncT)(Cstore& cstore, const vector<string>& args);
@@ -391,7 +392,7 @@ showCfg(Cstore& cstore, const vector<string>& args)
cnode::show_cfg(wroot, op_show_show_defaults, op_show_hide_secrets);
} else {
cnode::show_cfg_diff(aroot, wroot, op_show_show_defaults,
- op_show_hide_secrets);
+ op_show_hide_secrets, op_show_context_diff);
}
}
}
@@ -464,6 +465,7 @@ struct option options[] = {
{"show-show-defaults", no_argument, &op_show_show_defaults, 1},
{"show-hide-secrets", no_argument, &op_show_hide_secrets, 1},
{"show-working-only", no_argument, &op_show_working_only, 1},
+ {"show-context-diff", no_argument, &op_show_context_diff, 1},
{NULL, 0, NULL, 0}
};