cli: ask user before requiring optional parameters for 'nmcli -a con add type tun'

Fixes: 64c6b124d2
This commit is contained in:
Jiří Klimeš
2015-11-27 22:32:31 +01:00
parent 6ffe4b61f7
commit 18b7a9a42f

View File

@@ -4302,6 +4302,10 @@ do_questionnaire_tun (char **user, char **group,
GError *error = NULL;
gboolean b;
/* Ask for optional 'tun' arguments. */
if (!want_provide_opt_args (_("Tun"), 5))
return;
if (!*user) {
do {
*user = nmc_readline (_("User ID [none]: "));