summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2007-04-27 02:59:37 +0000
committerAnas Nashif <nashif@intel.com>2007-04-27 02:59:37 +0000
commit85a6b7a2dd2ec54c82eb9cf1a9c0b4e8812bc079 (patch)
tree5637607e9c49fd3ebce4002a9facc9d323f0a2cf /src
parent348e6a85a22e918af1d54fb4665e92e0af6948c9 (diff)
downloadwsmancli-85a6b7a2dd2ec54c82eb9cf1a9c0b4e8812bc079.tar.gz
wsmancli-85a6b7a2dd2ec54c82eb9cf1a9c0b4e8812bc079.tar.xz
wsmancli-85a6b7a2dd2ec54c82eb9cf1a9c0b4e8812bc079.zip
merge changes from branch
Diffstat (limited to 'src')
-rw-r--r--src/wsman-client-options.c8
-rw-r--r--src/wsman.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/wsman-client-options.c b/src/wsman-client-options.c
index 3c21014..26b3b32 100644
--- a/src/wsman-client-options.c
+++ b/src/wsman-client-options.c
@@ -86,6 +86,7 @@ char step = 0;
char request_only = 0;
char cim_extensions = 0;
char cim_references = 0;
+char cim_associators = 0;
static char *enum_mode = NULL;
static char *binding_enum_mode = NULL;
static char *enum_context = NULL;
@@ -213,6 +214,8 @@ char wsman_parse_options(int argc, char **argv)
"Show CIM Extensions", NULL},
{"references", 'W', U_OPTION_ARG_NONE, &cim_references,
"CIM References", NULL},
+ {"associators", 'w', U_OPTION_ARG_NONE, &cim_associators,
+ "CIM Associators", NULL},
{NULL}
};
@@ -436,6 +439,11 @@ char wsman_options_get_cim_ref(void)
return cim_references;
}
+char wsman_options_get_cim_assoc(void)
+{
+ return cim_associators;
+}
+
char wsman_options_get_cim_ext(void)
{
return cim_extensions;
diff --git a/src/wsman.c b/src/wsman.c
index 7361f9f..e89d3e0 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -315,6 +315,10 @@ int main(int argc, char **argv)
wsman_set_action_option(options,
FLAG_CIM_REFERENCES);
}
+ if (wsman_options_get_cim_assoc()) {
+ wsman_set_action_option(options,
+ FLAG_CIM_ASSOCIATORS);
+ }
if (wsman_options_get_optimize_enum()) {
wsman_set_action_option(options,
FLAG_ENUMERATION_OPTIMIZATION);