projects
/
platform
/
core
/
system
/
dlog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1759130
)
logutil: Be explicit about invalid option handling
30/143130/11
author
Karol Lewandowski
<k.lewandowsk@samsung.com>
Tue, 8 Aug 2017 15:53:58 +0000
(17:53 +0200)
committer
Karol 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
patch
|
blob
|
history
diff --git
a/src/logutil/logutil.c
b/src/logutil/logutil.c
index
17055d2
..
acf89eb
100755
(executable)
--- a/
src/logutil/logutil.c
+++ b/
src/logutil/logutil.c
@@
-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;