logutil: Be explicit about invalid option handling 30/143130/11
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 8 Aug 2017 15:53:58 +0000 (17:53 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 11 Aug 2017 11:23:00 +0000 (13:23 +0200)
Change-Id: If7b5c4710622c9912adbd7fb7e3edb4445077124
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
src/logutil/logutil.c

index 17055d2..acf89eb 100755 (executable)
@@ -819,8 +819,10 @@ int main(int argc, char **argv)
                        l_file.max_rotated = atoi_check_numeric(optarg, &err_arg_nondigit);
                        break;
 
+               case '?':
+                       // invald option or missing argument - pass to default, show help & break
                case 'h':
-                       /* pass thru */
+                       // help - pass thru & break
                default:
                        show_help(argv[0]);
                        return 1;