Some of the things you must be able to do when writing apps include getting information at startup, starting up a different program from within your app, and using the OS clipboard. Here, we'll show you how this is done in Red.
Interacting with the operating system
Getting input from command-line arguments
Command-line arguments are captured in the system/script/args word. It is one string in which all arguments are stored, separated by a space:
;-- see Chapter10/args.red:
print system/script/args ;== "78 A Red"
type? system/script/args ;== string!
args: split system/script/args " " ;== ["78" "A" "Red"]
print ["Number of command-line arguments:"...