From 13cafbc97864c6020039d33be558080520b2af3f Mon Sep 17 00:00:00 2001 From: akuker Date: Thu, 9 Jul 2020 13:32:18 -0500 Subject: [PATCH] Added ability to use --help as well as -h to show usage info --- src/raspberrypi/rascsi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/raspberrypi/rascsi.cpp b/src/raspberrypi/rascsi.cpp index dadf76ea..87b76a84 100644 --- a/src/raspberrypi/rascsi.cpp +++ b/src/raspberrypi/rascsi.cpp @@ -78,7 +78,8 @@ void Banner(int argc, char* argv[]) FPRT(stdout,"Copyright (C) 2016-2020 GIMONS\n"); FPRT(stdout,"Connect type : %s\n", CONNECT_DESC); - if (argc > 1 && strcmp(argv[1], "-h") == 0) { + if ((argc > 1 && strcmp(argv[1], "-h") == 0) || + (argc > 1 && strcmp(argv[1], "--help") == 0){ FPRT(stdout,"\n"); FPRT(stdout,"Usage: %s [-IDn FILE] ...\n\n", argv[0]); FPRT(stdout," n is SCSI identification number(0-7).\n");