From: Nishi Date: Fri, 11 Oct 2024 20:17:47 +0000 (+0000) Subject: add help X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a4075ee5b69d9040f9a8bd333adbbfc888054f3d;p=rbuild.git add help git-svn-id: file:///raid/svn-personal/rbuild/trunk@12 c68d3453-7f82-0740-9748-1d72386a946b --- 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;