Next: , Previous: About Kite, Up: Top


2 Invoking Kite

To see what command line arguments are available, use the -h flag. It will produce something similar to the following:

     harry:trunk mooneer$ kite -h
     This is kite, version 1.0a1 (built on i386-apple-darwin9.1.0)
     Copyright (C) 2007 Mooneer Salem
     
     Usage: kite [-h|-v] [file]
           -v: Print version information
           -h: This message
       [file]: File to execute or run (optional). If not specified, defaults to
               standard input.

To run a Kite application, simply include the filename as an argument:

     harry:trunk mooneer$ kite test.kt
     Hello, world!
     harry:trunk mooneer$

Not including a filename will cause Kite to take the program from standard input:

     harry:trunk mooneer$ kite
     "Hello, world!"|print()
     ^D
     Hello, world!
     harry:trunk mooneer$