mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 09:02:14 +00:00 
			
		
		
		
	Add --fullscreen command line parameter. Fix some mistakes in --help.
This commit is contained in:
		@@ -24,11 +24,12 @@ int main(int argc, char *argv[])
 | 
			
		||||
    // Manage command line arguments from the cpp side
 | 
			
		||||
    QStringList args = app.arguments();
 | 
			
		||||
    if (args.contains("-h") || args.contains("--help")) {
 | 
			
		||||
        qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir <dir>] [--program <prog>] [-h|--help]";
 | 
			
		||||
        qDebug() << "    --default-settings  Run cool-old-term with the default settings";
 | 
			
		||||
        qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]";
 | 
			
		||||
        qDebug() << "    --default-settings  Run cool-retro-term with the default settings";
 | 
			
		||||
        qDebug() << "    --workdir <dir>     Change working directory to 'dir'";
 | 
			
		||||
        qDebug() << "    --program <prog>    Run the 'prog' in the new terminal.";
 | 
			
		||||
        qDebug() << "    -p|--profile        Run cool-old-term with the given profile.";
 | 
			
		||||
        qDebug() << "    --fullscreen        Run cool-retro-term in fullscreen.";
 | 
			
		||||
        qDebug() << "    -p|--profile <prof> Run cool-retro-term with the given profile.";
 | 
			
		||||
        qDebug() << "    -h|--help           Print this help.";
 | 
			
		||||
        return 0;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -404,6 +404,11 @@ Item{
 | 
			
		||||
            else
 | 
			
		||||
                console.log("Warning: selected profile is not valid; ignoring it");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (args.indexOf("--fullscreen") !== -1) {
 | 
			
		||||
            fullscreen = true;
 | 
			
		||||
            showMenubar = false;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    Component.onDestruction: {
 | 
			
		||||
        storeSettings();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user