|
|
@ -44,6 +44,8 @@ handle_args( CalamaresApplication& a )
|
|
|
|
"Verbose output for debugging purposes (0-8).", "level" );
|
|
|
|
"Verbose output for debugging purposes (0-8).", "level" );
|
|
|
|
QCommandLineOption configOption( QStringList{ "c", "config"},
|
|
|
|
QCommandLineOption configOption( QStringList{ "c", "config"},
|
|
|
|
"Configuration directory to use, for testing purposes.", "config" );
|
|
|
|
"Configuration directory to use, for testing purposes.", "config" );
|
|
|
|
|
|
|
|
QCommandLineOption xdgOption( QStringList{"X", "xdg-config"},
|
|
|
|
|
|
|
|
"Use XDG_{CONFIG,DATA}_DIRS as well." );
|
|
|
|
|
|
|
|
|
|
|
|
QCommandLineParser parser;
|
|
|
|
QCommandLineParser parser;
|
|
|
|
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
|
|
|
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
|
|
@ -53,6 +55,7 @@ handle_args( CalamaresApplication& a )
|
|
|
|
parser.addOption( debugOption );
|
|
|
|
parser.addOption( debugOption );
|
|
|
|
parser.addOption( debugLevelOption );
|
|
|
|
parser.addOption( debugLevelOption );
|
|
|
|
parser.addOption( configOption );
|
|
|
|
parser.addOption( configOption );
|
|
|
|
|
|
|
|
parser.addOption( xdgOption );
|
|
|
|
|
|
|
|
|
|
|
|
parser.process( a );
|
|
|
|
parser.process( a );
|
|
|
|
|
|
|
|
|
|
|
@ -72,6 +75,8 @@ handle_args( CalamaresApplication& a )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( parser.isSet( configOption ) )
|
|
|
|
if ( parser.isSet( configOption ) )
|
|
|
|
CalamaresUtils::setAppDataDir( QDir( parser.value( configOption ) ) );
|
|
|
|
CalamaresUtils::setAppDataDir( QDir( parser.value( configOption ) ) );
|
|
|
|
|
|
|
|
if ( parser.isSet( xdgOption ) )
|
|
|
|
|
|
|
|
CalamaresUtils::setXdgDirs();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
int
|
|
|
|