Add new command line options

This commit is contained in:
Justin Ethier 2017-02-01 16:56:30 -05:00
parent cc0aefd3f2
commit ca048d5538
2 changed files with 12 additions and 6 deletions

View file

@ -421,13 +421,16 @@
((or (member "-h" args)
(member "--help" args))
(display "
-t Show intermediate trace output in generated C files
-d Only generate intermediate C files, do not compile them
-h, --help Display usage information
-v Display version information
-A directory Append directory to the list of directories that are searched
in order to locate imported libraries.
-I directory Prepend directory to the list of directories that are searched
in order to locate imported libraries.
-Ox Optimization level, higher means more optimizations will
be used. Set to 0 to disable optimizations.
--autogen Cyclone developer use only, create autogen.out file
-d Only generate intermediate C files, do not compile them
-t Show intermediate trace output in generated C files
-h, --help Display usage information
-v Display version information
")
(newline))
((member "-v" args)

View file

@ -94,8 +94,11 @@ Cyclone will not automatically generate libraries when compiling a program. Each
Option | Notes
------ | -----
`-t` | Show intermediate trace output in generated C files
`-A directory` | Append directory to the list of directories that are searched in order to locate imported libraries.
`-I directory` | Prepend directory to the list of directories that are searched in order to locate imported libraries.
`-Ox` | Optimization level, higher means more optimizations will be used. Set to 0 to disable optimizations.
`-d` | Only generate intermediate C files, do not compile them. This option will also show the C compiler commands that would have been used to compile the C file.
`-t` | Show intermediate trace output in generated C files
`-h, --help` | Display usage information
`-v` | Display version information