mirror of
https://github.com/akuker/RASCSI.git
synced 2025-08-15 08:27:34 +00:00
Added ability to use --help as well as -h to show usage info
This commit is contained in:
@@ -78,7 +78,8 @@ void Banner(int argc, char* argv[])
|
|||||||
FPRT(stdout,"Copyright (C) 2016-2020 GIMONS\n");
|
FPRT(stdout,"Copyright (C) 2016-2020 GIMONS\n");
|
||||||
FPRT(stdout,"Connect type : %s\n", CONNECT_DESC);
|
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,"\n");
|
||||||
FPRT(stdout,"Usage: %s [-IDn FILE] ...\n\n", argv[0]);
|
FPRT(stdout,"Usage: %s [-IDn FILE] ...\n\n", argv[0]);
|
||||||
FPRT(stdout," n is SCSI identification number(0-7).\n");
|
FPRT(stdout," n is SCSI identification number(0-7).\n");
|
||||||
|
Reference in New Issue
Block a user