Closed Bug 806216 Opened 12 years ago Closed 12 years ago

Screenshot command only accepts one argument

Categories

(DevTools :: General, defect)

18 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 799769

People

(Reporter: pioupioum, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0) Gecko/18.0 Firefox/18.0 Build ID: 20121028042012 Steps to reproduce: Step 1. Open the Developer Toolbar Step 2. Type "screenshot test" (with or w/o file extension) Step 3. Type one space Step 3. Start to type "true" or "false" or any letter Actual results: A tooltip appears: "Available Options\nToo many arguments" (see attachment).
Attachment #675964 - Attachment description: A tool appears when I type a second argument. → A tooltip appears when I type a second argument.
My guess is that you're following Kevin's excellent introduction to the command line. Since Kevin made that video, we've updated the screenshot command to use optional parameters rather than positional parameters. If you type "--" you'll see a list of the available parameters. I'll see what we can do to annotate the video with a note that the format of the screenshot command has changed. Please re-open this if that doesn't help, and thanks for the report.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
I use this useful command (and other developer tools) since its introduction in Firefox ;) But I did not follow the changes in syntax. In addition, it's never mentioned that you need to type "--" to view or use an optional argument. Thx for the clarification :)
(In reply to Mehdi Kabab from comment #2) > In addition, it's never mentioned that you need to type "--" to view or use > an optional argument. You're right, it's not immediately obvious. The hope was that putting [options] in the hint area (currently broken due to bug 800346 ): would give a clue, and that people might be used to typing -- to get options from experience with other command lines. I'll bare this in mind.
Resolution: INVALID → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: