mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add application argument to force import of legacy accounts
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
c8f8c9cd2c
commit
b864bef2e8
@ -97,7 +97,8 @@ namespace {
|
||||
" --localdirpath : (optional) path where to create a local sync folder when creating an account via command-line.\n"
|
||||
" --isvfsenabled : whether to set a VFS or non-VFS folder (1 for 'yes' or 0 for 'no') when creating an account via command-line.\n"
|
||||
" --remotedirpath : (optional) path to a remote subfolder when creating an account via command-line.\n"
|
||||
" --serverurl : a server URL to use when creating an account via command-line.\n";
|
||||
" --serverurl : a server URL to use when creating an account via command-line.\n"
|
||||
" --forcelegacyimport : forcefully import account configurations from legacy clients (if available).\n";
|
||||
|
||||
QString applicationTrPath()
|
||||
{
|
||||
@ -755,8 +756,9 @@ void Application::parseOptions(const QStringList &options)
|
||||
} else {
|
||||
showHint("Invalid URL passed to --overridelocaldir");
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else if (option == QStringLiteral("--forcelegacyimport")) {
|
||||
AccountManager::instance()->setForceLegacyImport(true);
|
||||
} else {
|
||||
QString errorMessage;
|
||||
if (!AccountSetupCommandLineManager::instance()->parseCommandlineOption(option, it, errorMessage)) {
|
||||
if (!errorMessage.isEmpty()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user