From: "Greg London" <[EMAIL PROTECTED]>
   Date: Thu, 9 Sep 2004 23:00:24 -0400 (EDT)

   Bob Rogers said:
   >    Seriously, splitting up the options this way does make it easier to
   > combine them, but it still requires globals to store the values, and as
   > long as that's true, I find it hard to imagine a solution that can deal
   > cleanly with options for multiple instances of the same class.

   Hm, none of my scripts/modules would get that complicated.
   Everything I've done could treat command line arguments passed in as
   class data. I can't imagine a script that would have different
   arguments for different instances of the same class.
   I'm sure there's a situation that would need it, but I've never
   needed it for any of the scripts I've done.

I concede that needing different options for tweaking multiple instances
of the same class should be relatively rare.  On the other hand, the
logic of my application(s) makes it very natural, so it can't be all
that rare.  And maybe it would be done this way more often if it were
easier to code.

   I thought I had some pretty hairy command line parsing going on, but
   apparantly, you're dealing with a wookie.

Bingo.

                                        -- Bob
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to