Re: Question about argopts

"Joshua M. Berne" <berne-7iHiS5+6wm7SUeElwK9/[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
You could register the command doing "myargs*" as the argspec, and then
join the incoming arguments.

I think that might screw with whitespace, but it'll get you what you want.

(I.e. your first example will give you an array ["say","hello"] and the
second will give you ["say hello"], both of wich will produce the string
"say hello" if you take `" ".join(args["myargs"]`)

(I think you might have a slight problem in that "#mycmd say   hello" will
leave you with the same "say hello" - extra white space will be lost.)

- Josh (very tired, didn't check this, seems clear, at least to my
girlfriend who is reading this over my shoulder.)

On Fri, 26 Sep 2003, B Razen wrote:

> 
> What arg options string do I pass to get the whole
> line
> passed in in one argument?  I want
> 
> #mycmd say hello
> and
> #mycmd {say hello}
> 
> to work the same.
> 
> boilerplate: Thanks for lyntin, being able to write in
> python is sooooo much better than trying to cram real
> complicated code into the crappy macro languages ala
> tinyfugue.
> 
> Is there a searchable archive of lyntin-devl, or is
> there a place I can get a tarball of all the past
> posts?
> 
> TIA,
> 
> Razen
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Lyntin-devl mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lyntin-devl
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.