Make sure you're referencing bsh.args array variable to get at the command line parameters.

Alexey
2001 Honda CBR600F4i (CCS)
1992 Kawasaki EX500
http://azinger.blogspot.com
http://bsheet.sourceforge.net
http://wcollage.sourceforge.net


--- On Wed, 6/4/08, Dave Pawson <dave.pawson@gmail.com> wrote:
From: Dave Pawson <dave.pawson@gmail.com>
Subject: [Beanshell-users] New user, stuck on comand line parameters
To: beanshell-users@lists.sourceforge.net
Date: Wednesday, June 4, 2008, 6:12 AM

I have a java class which I've moved to bsh easily.

I'm stuck getting parameters to it (argv[x])

$java -cp bsh.jar myscript.bsh param1
seems to be indicated at

http://www.beanshell.org/manual/standalonemode.html

I'm unsure if I should be using a
public static void main()
in my code (I couldn't get it to work).

No example found in archive or documentation?

Any help appreciated.

regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Beanshell-users mailing list
Beanshell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/beanshell-users