mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-05 23:45:21 +00:00
crossystem: support standard --help flag
BUG=chromium:765499 TEST=unittests pass BRANCH=None Change-Id: I5c5118c44897d89e5116a9fce49bacbf16704dd8 Reviewed-on: https://chromium-review.googlesource.com/668658 Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
6129365995
commit
5337484629
@@ -258,7 +258,8 @@ int main(int argc, char* argv[]) {
|
|||||||
return PrintAllParams(1);
|
return PrintAllParams(1);
|
||||||
|
|
||||||
/* Print help if needed */
|
/* Print help if needed */
|
||||||
if (!strcasecmp(argv[1], "-h") || !strcmp(argv[1], "-?")) {
|
if (!strcasecmp(argv[1], "-h") || !strcmp(argv[1], "-?") ||
|
||||||
|
!strcmp(argv[1], "--help")) {
|
||||||
PrintHelp(progname);
|
PrintHelp(progname);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user