[14 Aug 2009] Arguments to a script

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
JosDuchIt
Posts: 17
Joined: Mon Jun 20, 2016 6:26 pm

[14 Aug 2009] Arguments to a script

Post by JosDuchIt »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 14 Aug 2009 19:49:27 +0200

Hello, I am testing a script requiring some arguments. The doc states wel how to get the args, but i get the message "Wrong arguments specified". How should the arguments and the parameters be defined on the commandline ?

Code: Select all

Holywood Myscript.hws arg1 = "hello", arg2 = "there" 
Thanks for help

Joseph
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

[14 Aug 2009] Re: Arguments to a script

Post by lazi »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 14 Aug 2009 23:37:02 +0100
Hello, I am testing a script requiring some arguments. The doc states wel how to get the args, but i get the message "Wrong arguments specified". How should the arguments and the parameters be defined on the commandline ? Holywood Myscript.hws arg1 = "hello", arg2 = "there"
Try this:

Code: Select all

Hollywood Myscript.hws -arg1="hello" -arg2="there"
Hollywood arguments are started with <->. All unsupported arguments are passed to the script's GetCommandLine().

Look at the Hollywood.guide more deeply :)
JosDuchIt
Posts: 17
Joined: Mon Jun 20, 2016 6:26 pm

[15 Aug 2009] Re: Arguments to a script

Post by JosDuchIt »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 15 Aug 2009 11:45:08 +0200

Hello

Thanks for the help,

That worked. The guide was not clear about this. I hunted (using Next which is very good for searching in an Amigaguide doc) for this info for nearly twenty minutes without succes. The logical place would have been under the GetCommandLine() item

Joseph
Locked