> I'd like to modify this (and the moviefone search, as well), but I haven't
> played with parseArgs() enough to know how.  Basically, I think it should be
> possible for someone to search for both a movie AND a location, not one or the
> other.  It's my goal to have all these searches work:
>
> fandango harry potter /location san diego
> fandango /title harry potter
> fandango harry potter
> fandango /location san diego
> fandango /location san diego /title harry potter

Nik,

This won't work with the current parseArgs because it basically pulls all the
switches out of the list of tokens separated by whitespace, and passes the
remainder as the search string.  The switches can have values, but there's some
work that needs to be done to allow it to handle values with embedded
whitespace.  E.g., these would work assuming that /title was the default:

  fandango harry potter /location:dallas
  fandango /title harry potter
  fandango harry potter

But, this won't work:

  fandango /location san diego /title harry potter

It will pass in "san diego harry potter" as the search string.

The following won't work now either, but it should be made to work:

  fandango /location:"san diego" harry potter




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to