Page MenuHomePhabricator

provide way how to disable cosmetic_changes.py by inline parameter
Closed, InvalidPublicFeature

Description

in user_config. py I should have
cosmetic_changes_enable['family'] = ('lang')

Now, when I want to disable cosmetic changes when running other scripts (replace.py), I must edit user_config.py

It would be useful to have some inline parameter, like -cosmetic_changes:false

(eg editing templates or some maintenance pages)

Or have possibility to disable them for certain namespaces.

Event Timeline

pwb.py -help:global
-cosmeticchanges  Toggles the cosmetic_changes setting made in config.py
-cc               or user config file to its inverse and overrules it.
                  All other settings and restrictions are untouched. The
                  setting may also be given directly like `-cc:True`;
                  accepted values for the option are `1`, `yes`, `true`,
                  `on`, `y`, `t` for True and `0`, `no`, `false`, `off`,
                  `n`, `f` for False. Values are case-insensitive.

-cc:0 should be it.

JAnD claimed this task.

-cosmeticchanges / cosmetic_changes.py seem to be little inconsistent ;-)

But it works.

pwb.py -help:global
-cosmeticchanges  Toggles the cosmetic_changes setting made in config.py
-cc               or user config file to its inverse and overrules it.
                  All other settings and restrictions are untouched. The
                  setting may also be given directly like `-cc:True`;
                  accepted values for the option are `1`, `yes`, `true`,
                  `on`, `y`, `t` for True and `0`, `no`, `false`, `off`,
                  `n`, `f` for False. Values are case-insensitive.

-cc:0 should be it.

JJMC89 changed the task status from Resolved to Invalid.Aug 3 2023, 6:52 PM
JJMC89 removed JAnD as the assignee of this task.