diff --git a/src/tools/mat/deffilemanagermatcommand.cpp b/src/tools/mat/deffilemanagermatcommand.cpp index 7988246..8c6a771 100644 --- a/src/tools/mat/deffilemanagermatcommand.cpp +++ b/src/tools/mat/deffilemanagermatcommand.cpp @@ -94,6 +94,11 @@ static CommandLineParseResult parseCommandLine(QCommandLineParser *parser, DefFi return CommandLineError; } + if (!isDefFileManagerNameSet && !posArgs.empty()) { + *errorMessage = QSL("To set the default file manager use the -s/--set option"); + return CommandLineError; + } + if (isListAvailableSet && (isDefFileManagerNameSet || !posArgs.empty())) { *errorMessage = QSL("list-available can't be used with other options and doesn't take arguments"); return CommandLineError;