From: Elliott S. <ell...@gm...> - 2008-05-26 00:51:32
|
On Sun, May 25, 2008 at 5:45 PM, Juho Snellman <js...@ik...> wrote: > "Elliott Slaughter" <ell...@gm...> writes: >> Hi, >> >> I am writing a program that needs to parse command-line arguments. In >> the SBCL manual it says that command-line arguments can be read from >> sb-ext:*posix-argv*. However, these include runtime and toplevel >> options not relevant to my program. Is there any way to get just the >> user options, without having to write a custom function to extract >> them from *posix-argv*? > > Are you sure? Both runtime and toplevel options should be stripped > away (though the latter obviously only if you're using the default > :toplevel when making the core). If you're sure, can you please post > an example? :-) Sorry, I double checked and you're right. (Maybe I made a typo or something in my initial testing...) Thanks! -- Elliott Slaughter "Any road followed precisely to its end leads precisely nowhere." - Frank Herbert |