The command line arguments are in J noun ARGV. Add line
smoutput ARGV
to the example you give for a quick demonstration.
----- Original Message -----
From: "efittery" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 27, 2007 12:21 PM
Subject: [Jprogramming] passing arguments from command line
I am looking for informtion on how to make a j executable that will
process
command line arguments.
As an example the file test is:
-----------------------------
#!/home/efittery/bin/jconsole
testValue =: 'doing test'
echo testValue
exit ''
-----------------------------
to execute the file test, you just type ./test (in unix that is ).
this will display:
doing test
-----------------------------
How can you pass an argument in to ./test to initialize testValue for
display?
--
View this message in context:
http://www.nabble.com/command-line-parsing%2C-posix-style-tf4092894s24193.html#a13975345
Sent from the J Programming mailing list archive at Nabble.com.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm