owncloudcmd: don't prompt for password if it was provided

This commit is contained in:
Daniel Molkentin 2014-10-10 18:03:50 +02:00
parent 2149092c7a
commit 77d2cba155

View file

@ -201,7 +201,7 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
} else if( (option == "-u" || option == "--user") && !it.peekNext().startsWith("-") ) {
options->user = it.next();
} else if( (option == "-p" || option == "--password") && !it.peekNext().startsWith("-") ) {
options->user = it.next();
options->password = it.next();
} else if( option == "--exclude" && !it.peekNext().startsWith("-") ) {
options->exclude = it.next();
} else {