cli: replace 'dev' and 'con' OBJECTs by 'device', resp. 'connection'

Shorter forms work as previously. Thus, all of these commands are valid:
nmcli device, nmcli devic, nmcli devi, nmcli dev, nmcli de, nmcli d
nmcli connection, nmcli connectio, ..., nmcli conn, nmcli con, ..., nmcli c
This commit is contained in:
Jiří Klimeš
2012-11-13 14:43:14 +01:00
parent c8974bc32d
commit e9e2c5645f
3 changed files with 14 additions and 11 deletions

View File

@@ -187,7 +187,7 @@ static void
usage (void)
{
fprintf (stderr,
_("Usage: nmcli con { COMMAND | help }\n"
_("Usage: nmcli connection { COMMAND | help }\n"
" COMMAND := { list | status | up | down | delete }\n\n"
" list [id <id> | uuid <id>]\n"
" status [id <id> | uuid <id> | path <path>]\n"
@@ -2028,7 +2028,7 @@ get_connections_cb (NMRemoteSettings *settings, gpointer user_data)
quit ();
}
/* Entry point function for connections-related commands: 'nmcli con' */
/* Entry point function for connections-related commands: 'nmcli connection' */
NMCResultCode
do_connections (NmCli *nmc, int argc, char **argv)
{