Print version string if not arguments are given.

This commit is contained in:
Adam Hamsik 2023-12-28 19:21:50 +01:00
parent 0362e8a560
commit 96c9f917c0
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#include "common.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

View File

@ -26,10 +26,13 @@
#include "common.h"
static int usage(char **argv) {
printf("\nUsage:\t%s -q -f config_file program_name [arguments]\n"
"\t-q makes proxychains quiet - this overrides the config setting\n"
"\t-f allows to manually specify a configfile to use\n"
"\tfor example : proxychains telnet somehost.com\n" "More help in README file\n\n", argv[0]);
printf( "\nProxychains4: %d.%d.%d\n"
"Usage:\t%s -q -f config_file program_name [arguments]\n"
"\t-q makes proxychains quiet - this overrides the config setting\n"
"\t-f allows to manually specify a configfile to use\n"
"\n\tfor example : proxychains telnet somehost.com\n"
"\n\tMore help in README file\n\n", PROXYCHAINS_VERSION_MAJOR,
PROXYCHAINS_VERSION_MINOR, PROXYCHAINS_VERSION_BUGFIX, argv[0]);
return EXIT_FAILURE;
}