Skip to content

Commit d9850c1

Browse files
committed
CONSOLE: added optional help arg
1 parent b5e0a3e commit d9850c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/platform/console/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ void command_help(const char *selection) {
6262
bool found = false;
6363
for (int i = 0; i < keyword_help_len; i++) {
6464
if (strncasecmp(selection, keyword_help[i].keyword, len) == 0) {
65-
fprintf(stderr, "%s : %s\n", keyword_help[i].keyword, keyword_help[i].help);
65+
fprintf(stdout, "%s : %s\n", keyword_help[i].keyword, keyword_help[i].help);
6666
found = true;
6767
}
6868
}
6969
if (!found) {
7070
for (int i = 0; i < keyword_help_len; i++) {
7171
if (strncasecmp(selection, keyword_help[i].package, len) == 0) {
72-
fprintf(stderr, "%s : %s\n", keyword_help[i].keyword, keyword_help[i].help);
72+
fprintf(stdout, "%s : %s\n", keyword_help[i].keyword, keyword_help[i].help);
7373
found = true;
7474
}
7575
}
@@ -78,7 +78,7 @@ void command_help(const char *selection) {
7878
const char *last_package = NULL;
7979
for (int i = 0; i < keyword_help_len; i++) {
8080
if (last_package == NULL || strcmp(last_package, keyword_help[i].package) != 0) {
81-
fprintf(stderr, "%s\n", keyword_help[i].package);
81+
fprintf(stdout, "%s\n", keyword_help[i].package);
8282
last_package = keyword_help[i].package;
8383
}
8484
}

0 commit comments

Comments
 (0)