Closed
Bug 780139
Opened 12 years ago
Closed 12 years ago
The sense of some GCLI command boolean parameters are wrong
Categories
(DevTools :: Console, defect, P2)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 17
People
(Reporter: jwalker, Unassigned)
References
Details
(Whiteboard: [gclicommands])
We can't have boolean parameters with a defaultValue (because all boolean params have an implied defaultValue of true), so we certainly can't have one with a defaultValue of true.
Reporter | ||
Comment 1•12 years ago
|
||
Also spaceBeforeConditional
Comment 2•12 years ago
|
||
Full list of booleans with default values: - jsb/preserveNewlines - jsb/jslintHappy - jsb/spaceBeforeConditional - jsb/unescapeStrings - restart/nocache - screenshot/fullpage The problem is that e.g. jsb is a well known beautifier and people are used to the params as they are, with boolean defaults being either true or false. I could simply use the strings "true" or "false", but need to speak with Joe about this.
Updated•12 years ago
|
Summary: The sense of the GCLI JSB command parameter 'preserveNewlines' is wrong → The sense of some GCLI command boolean parameters are wrong
Reporter | ||
Comment 3•12 years ago
|
||
(I made a typo above, the defaultValue of a boolean parameter is false not true)
There has to be a default one way or the other or it would be really confusing:
>> cmd --this --that
Where this and that had different defaults - one would be turning a feature on and the other would be turning it off.
It seems sensible for me for a switch to be switching something 'on' and that it's off by default.
How about having noSpaceBeforeConditional and dontPreserveNewlines ?
Reporter | ||
Comment 4•12 years ago
|
||
The commands now have the right sense, and we're doing more work on JSB in a separate bug.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•