adamdebreceni commented on code in PR #1498:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1498#discussion_r1093152156
##########
minifi_main/MiNiFiMain.cpp:
##########
@@ -258,7 +259,11 @@ int main(int argc, char **argv) {
minifi::core::extension::ExtensionManager::get().initialize(configure);
- if (argc >= 3 && std::string("docs") == argv[1]) {
+ if (argc >= 2 && std::string("docs") == argv[1]) {
+ if (argc == 2) {
Review Comment:
would it make sense to also check for too many arguments? e.g. if the user
accidentally added a space in one of the paths (or if it already contains
spaces but is not properly escaped)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]