1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

--help printed part of the path for irssi which looked stupid, now it prints

only the binary name. patch by tommik.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2495 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-17 12:43:39 +00:00 committed by cras
parent a99036cb97
commit be44c5c04a

View File

@ -175,7 +175,7 @@ static int showHelpIntro(poptContext con, FILE * f) {
fprintf(f, POPT_("Usage:"));
if (!(con->flags & POPT_CONTEXT_KEEP_FIRST)) {
fn = con->optionStack->argv[0];
if (strchr(fn, '/')) fn = strchr(fn, '/') + 1;
if (strrchr(fn, '/')) fn = strrchr(fn, '/') + 1;
fprintf(f, " %s", fn);
len += strlen(fn) + 1;
}