taskGnash - The GNU Flash player - Tasks: task #10817, Sort out options parsing

 
 

You are not allowed to post comments on this tracker with your current authentification level.

task #10817: Sort out options parsing

Submitted by:  Sandro Santilli <strk>
Submitted on:  Mon 20 Dec 2010 10:31:27 AM UTC  
 
Should Start On: Sun 19 Dec 2010 11:00:00 PM UTCShould be Finished on: Sun 19 Dec 2010 11:00:00 PM UTC
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Percent Complete: 0%Assigned to: None
Open/Closed: OpenEffort: 0.00

Mon 20 Dec 2010 10:31:27 AM UTC, original submission:

Option parsing in gnash is kind of broken atm.
In particular, we had a concept of Gui classes having
a chance to parse some commandline args (they get argc/argv)
and gtk gui actually passes argc/argv over to gtk libs.

But, we fail when we encounter an unknown option, so
it'll be impossible to pass anything down the line.

This blog post gives example of accepting unknown:
http://cxwangyi.blogspot.com/2010/06/boost-program-options-library.html

The remaining problem is that we can't register "positional"
parameters until all components had a chance to parse
the commanline, and drop what they parsed, or we won't be
able to tell what's a switch argument and what's a positional
parameter.

Sandro Santilli <strk>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup