From a4075ee5b69d9040f9a8bd333adbbfc888054f3d Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 11 Oct 2024 20:17:47 +0000 Subject: [PATCH] add help git-svn-id: file:///raid/svn-personal/rbuild/trunk@12 c68d3453-7f82-0740-9748-1d72386a946b --- Server/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Server/main.c b/Server/main.c index b41bb4c..52f8170 100644 --- a/Server/main.c +++ b/Server/main.c @@ -42,6 +42,11 @@ int main(int argc, char** argv) { printf("\tPlain : %s\n", rbs_plain_auth); printf("\tPAM : %s\n", rbs_pam_auth); return 0; + } else if(strcmp(argv[i], "--help") == 0 || strcmp(argv[i], "-h") == 0) { + printf("Usage: %s --config|-C config [--inetd|-i] [--dry-run|-d]\n", argv[0]); + printf("Usage: %s --version|-V\n", argv[0]); + printf("Usage: %s --help|-h\n", argv[0]); + return 0; } else { fprintf(stderr, "Unknown option: %s\n", argv[i]); return 1; -- 2.43.0