The command line used to run LispWorks can be found using the variable
system:*line-arguments-list*
. The value is a list of strings containing the executable name followed by any other command line arguments, in the order they were passed.
For example, if your application needs to behave differently when passed an argument
-foo
, use the following test:
(member "-foo" sys:*line-arguments-list* :test 'string=)