Commit 41885daa authored by Bastien Nocera's avatar Bastien Nocera
Browse files

2005-08-30 Bastien Nocera <hadess@hadess.net>

	* test/nmtestdevices.c: (print_usage), (main):
	Check the number of arguments, and fix a typo


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent bea4a6e1
2005-08-30 Bastien Nocera <hadess@hadess.net>
* test/nmtestdevices.c: (print_usage), (main):
Check the number of arguments, and fix a typo
2005-08-29 Dan Williams <dcbw@redhat.com>
Patch from Dumitru Ciobarcianu <Dumitru.Ciobarcianu@iNES.RO>
......
......@@ -176,7 +176,7 @@ static void print_usage (void)
"This tool allows you to tell NetworkManager to create and manipulate fake 'test' devices. This\n"
"is useful in sitation where you may not have a particular device but still want to test\n"
"NetworkManager out with it (For example, you forgot your wireless card at home and now you're\n"
"taking a trip and want to hack on NM, and you're on a plane so you could use the wireless\n"
"taking a trip and want to hack on NM, and you're on a plane so you couldn't use the wireless\n"
"card anyway).\n"
"\n");
}
......@@ -193,6 +193,11 @@ int main( int argc, char *argv[] )
gboolean make_link_inactive = FALSE;
NMDeviceType dev_type = DEVICE_TYPE_DONT_KNOW;
if (argc < 2) {
print_usage ();
exit (0);
}
/* Parse options */
while (1)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment