diff --git a/clibasic.c b/clibasic.c index 7923e5d..8c6cefd 100644 --- a/clibasic.c +++ b/clibasic.c @@ -115,7 +115,7 @@ // Base defines -char VER[] = "0.22.2"; +char VER[] = "0.22.3"; #if defined(__linux__) char OSVER[] = "Linux"; @@ -692,7 +692,7 @@ int main(int argc, char** argv) { info = true; if (shortopt) goto chkshortopt; } else if (!strcmp(argv[i], "--redirection") || (shortopt && argv[i][shortopti] == 'r')) { - if (info) {fputs("Incorrect number of options passed.\n", stderr); exit(1);} + if (redirection) {fputs("Incorrect number of options passed.\n", stderr); exit(1);} redirection = true; if (shortopt) goto chkshortopt; } else if (!strcmp(argv[i], "--command") || !strcmp(argv[i], "-c")) { diff --git a/docs/clibasic.man b/docs/clibasic.man index 08f3444..41a7e35 100644 --- a/docs/clibasic.man +++ b/docs/clibasic.man @@ -34,6 +34,9 @@ Skips searching for autorun programs. .TP \fB\-i\fR, \fB\-\-info\fR Enables the info text. +.TP +\fB\-r\fR, \fB\-\-redirection\fR +Enables support for redirecting STDIN, STDOUT, and STDERR. .SH EXAMPLES .TP \fBclibasic\fR