diff options
author | Thomas Haller <thaller@redhat.com> | 2013-11-12 20:38:29 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2013-11-12 21:16:54 +0100 |
commit | b2c468010dd8514214bc5b7db8a6cafbea7c91bf (patch) | |
tree | e239fd2caa9b3ecd6a9494aacf5dd0f4ee5a8976 | |
parent | 010ce701d18de6e766692ac2d0fb4d6053d73576 (diff) | |
download | NetworkManager-th/cli_describe_all.tar.gz |
cli: interactive describe without settings describes all settings/propertiesth/cli_describe_all
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | cli/src/connections.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/src/connections.c b/cli/src/connections.c index 5ed43cb90f..60b758e89f 100644 --- a/cli/src/connections.c +++ b/cli/src/connections.c @@ -6296,8 +6296,12 @@ editor_menu_main (NmCli *nmc, NMConnection *connection, const char *connection_t /* Show property description */ print_property_description (menu_ctx.curr_setting, prop_name); } else { - printf (_("Error: no setting selected; valid are [%s]\n"), valid_settings_str); - printf (_("use 'goto <setting>' first, or 'describe <setting>.<property>'\n")); + GSList *iter, *settings = nm_connection_get_settings (connection); + + for (iter = settings; iter; iter = iter->next) + print_setting_description (iter->data); + + g_slist_free (settings); } } else { NMSetting *ss = NULL; |