mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
unreachable --version code made reachable.
error message improved.
This commit is contained in:
parent
0cde7c8ac1
commit
07bcaaebf9
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
|
|||
int argCount = args.count();
|
||||
|
||||
if( argCount < 3 ) {
|
||||
if (argCount > 2) {
|
||||
if (argCount >= 2) {
|
||||
const QString option = args.at(1);
|
||||
if (option == "-v" || option == "--version") {
|
||||
showVersion();
|
||||
|
@ -192,7 +192,7 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
|
|||
options->target_url.replace(0, 4, "owncloud");
|
||||
options->source_dir = args.takeLast();
|
||||
if( !QFile::exists( options->source_dir )) {
|
||||
std::cerr << "Source dir does not exists." << std::endl;
|
||||
std::cerr << "Source dir '" << qPrintable(options->source_dir) << "' does not exist." << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue