get console arguments WITHOUT - (win)

Discuss any general programming issues here
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: get console arguments WITHOUT - (win)

Post by airsoftsoftwair »

Should be possible to add some option or command that allows you to get the raw console arguments. I'll see what I can do.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: get console arguments WITHOUT - (win)

Post by airsoftsoftwair »

Code: Select all

- New: Added GetRawArguments() function; this can be used to get all arguments passed to your program or
  script either via the console or via Workbench on Amiga or via the Shell API on Windows; the arguments
  will be returned in a table and will also include arguments parsed by Hollywood, e.g. "-window" or
  "-quiet"; the first table entry will always contain the name of the program; note that this will not
  necessarily contain a qualified path but just the name of the program as it was called on the console;
  GetRawArguments() can be useful if your script should be capable of handling multiple file arguments;
  GetFileArgument() will only allow you to get the very first file passed to your program but by using
  GetRawArguments() you can also support multiple file arguments
Post Reply