title: How can I specify the package name when launching a Lisp program from the command line?
body: <p>I'm calling a Lisp function (and a few other thing) from a shell script. For brevity, below is relevant part of the script :</p>
  
  <blockquote>
    <p>./gcl  -load /tmp/calendrica-3.0.cl -batch -eval '(format T "~a"
    (CC3::sunset (CC3::fixed-from-gregorian (CC3::gregorian-date 1996
    CC3::february 25)) CC3::jerusalem))'
    728714.7349874675</p>
  </blockquote>
  
  <p>The above code works fine but I had to append the package name CC3 for every symbol that is used; which makes the code unwieldy and hard to type.</p>
  
  <p>I tried to simplify it like so, using <code>use-package</code> :</p>
  
  <blockquote>
    <p>./gcl  -load /tmp/calendrica-3.0.cl -batch -eval '(format T "~a"
    (use-package "CC3") (sunset (fixed-from-gregorian (gregorian-date 1996 february 25)) jerusalem))'</p>
  </blockquote>
  
  <p>Much easier to read and type, but unfortunately it doesn't work. I've tried all sorts of ways to include the <code>use-package</code> directive but so far no success.</p>
  
  <p>Is it even possible to include a <code>use-package</code> directive while launching a Lisp program via the GNU Common Lisp's (gcl) load directive?</p>
  
  <p><strong>Update:</strong> 
  The solution is to use multiple evals as suggested by the accepted answer.</p>
  
  <blockquote>
    <p>./gcl  -load /tmp/calendrica-3.0.cl -batch -eval
    '(use-package "CC3")' -eval '(format T "~a" (sunset
    (fixed-from-gregorian (gregorian-date 1996 february 25)) jerusalem))'</p>
  </blockquote>