Re: Question about argopts
"Joshua M. Berne" <berne-7iHiS5+6wm7SUeElwK9/[email protected]>
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
After brushing my teeth acnd considering why i never dealt with this in
the argparser before i realized that i had.. sort of. You'll need to
contemplate exactly which solution you want to pick.
Look at the implementation of the raw command, there you'll see a use of
both an argspec and argoptions for the add_command function. the
argoption used is limitparsing, which says "after you've found this many
tokens just dump the rest into the "input" argument.
(raw_cmd in modules.lyntincmds in lyntin 3.x is where you should
look.. somewhere similar in 4.0 i think. (I'm slacking in migrating) )
- Josh (still tired, but my teeth are now burshed so i can go to
sleep. Expect nothing else from me tonight.)
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