The "-F" command line option is documented as "use factory settings", but it actually performs an irreversible factory reset

• Dec 1, 2020 - 19:24
Reported version
3.5
Type
Wording/Translation
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Trying to determine MuseScore's default font size, I ran musescore3.exe -Fon the command line.

Expected behaviour: MuseScore would ignore my user settings for one session, then restore my settings the next time I start MuseScore.

Observed behaviour: A full factory-reset was performed, without any warning or confirmation dialog.

Suggested solution: Improve the documentation of the -F flag to make its consequences more clear. Consider adding a confirmation dialog.


Comments

The handbook is a WIKI like thing.
Although this particular page https://musescore.org/en/handbook/command-line-options is in sync with https://github.com/musescore/MuseScore/blob/master/build/Linux%2BBSD/ms…

Actually it says:

-F | --factory-settings

Use only the standard built-in presets (“factory settings”) and delete user preferences; compare with the -R option (see also Revert to factory settings)

And https://musescore.org/en/handbook/revert-factory-settings clearly states that this reverts to factory settings

See slso:

-R | --revert-settings

Use only the standard built-in presets (“factory settings”) but do not delete user preferences; compare with the -F option

Sorry, title was unclear - I'm referring to the documentation bundled with MuseScore3.exe, which is printed when the user executes MuseScore3.exe --help.

Ah! The code at mscore/musescore.cpp, lines 8057-8122

    parser.addOption(QCommandLineOption({ "F", "factory-settings" }, "Use factory settings"));  // this includes -R, --revert-settimngs
    parser.addOption(QCommandLineOption({ "R", "revert-settings" },
                                        "Revert to factory settings, but keep default preferences"));

So your request is to change that "Use" with "Revert to", right?