[tuxdroid-svn] r390 - firmware/tuxup/trunk
Status: Beta
Brought to you by:
ks156
From: neimad <c2m...@c2...> - 2007-06-17 11:26:14
|
Author: neimad Date: 2007-06-17 13:26:12 +0200 (Sun, 17 Jun 2007) New Revision: 390 Modified: firmware/tuxup/trunk/main.c Log: * Show the user what syntax error he made. Modified: firmware/tuxup/trunk/main.c =================================================================== --- firmware/tuxup/trunk/main.c 2007-06-17 11:21:18 UTC (rev 389) +++ firmware/tuxup/trunk/main.c 2007-06-17 11:26:12 UTC (rev 390) @@ -564,11 +564,17 @@ if (argc == optind + 1) strcpy(path, argv[optind]); else + { + fprintf(stderr, "too many files or paths specified.\n\n"); usage(stderr, 1); + } } } - else /* No arguments given. */ + else + { + fprintf(stderr, "no file nor path specified.\n\n"); usage(stderr, 1); + } /* Select which files to program */ switch (program_mode) |