From 2079b4292e60a844a7ceb92c02edb94fc64ecd2c Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Mon, 12 Jun 2017 20:59:07 -0700 Subject: [PATCH] fix minor bug introduced by previous refactoring --- src/builtin_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin_functions.cpp b/src/builtin_functions.cpp index 5a1326f61..dea70b2c5 100644 --- a/src/builtin_functions.cpp +++ b/src/builtin_functions.cpp @@ -264,9 +264,9 @@ int builtin_functions(parser_t &parser, io_streams_t &streams, wchar_t **argv) { int retval = parse_functions_opts(&opts, &optind, argc, argv, parser, streams); if (retval != STATUS_CMD_OK) return retval; - if (opts.print_help || !argv[optind]) { + if (opts.print_help) { builtin_print_help(parser, streams, cmd, streams.out); - return STATUS_INVALID_ARGS; + return STATUS_CMD_OK; } // Erase, desc, query, copy and list are mutually exclusive.