Since a firebug extension works just like any other Firefox extension, you
can create a component that will handle command line options and register it
with firefox. I do this for the crossfire extension.

There's some documentation here about creating command-line handlers for
Firefox:
https://developer.mozilla.org/en/Chrome/Command_Line

Here is the crossfire command-line handle:
http://code.google.com/p/fbug/source/browse/extensions/crossfire/branches/0.3/firefox/components/CommandLineHandler.js

You need to register your component as a command-line handler in your
chrome.manifest file, for instance Crossfire's chrome.manifest has these
entries:

component   {3AB17C22-D1A6-4FF0-9A66-3DBD42114D61}
components/CommandLineHandler.js
contract    @almaden.ibm.com/crossfire/command-line-handler;1
{3AB17C22-D1A6-4FF0-9A66-3DBD42114D61}
category    command-line-handler    m-crossfire-clh
@almaden.ibm.com/crossfire/command-line-handler;1


Mike

On Thu, Jul 7, 2011 at 9:49 AM, Shashank Khanvilkar <[email protected]>wrote:

> Hello All,
> Thanks in advance for all responses.
>
> Is there any way in which I can pass a command line option specified while
> starting firefox to a firebug extension?
> Shank
>
> --
> You received this message because you are subscribed to the Google Groups
> "Firebug" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/firebug?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to