Options (3)
booleanCompile a source file
Example:
nim {{[c|compile]}} {{path/to/file.nim}}-r, --runbooleanCompile and run a source file
Example:
nim {{[c|compile]}} {{[-r|--run]}} {{path/to/file.nim}}-d, --definebooleanCompile a source file with release optimizations enabled
Example:
nim {{[c|compile]}} {{[-d|--define]}}:release {{path/to/file.nim}}Examples (6)
Compile a source file
nim [c|compile] path/to/file.nimCompile and run a source file
nim [c|compile] [-r|--run] path/to/file.nimCompile a source file with release optimizations enabled
nim [c|compile] [-d|--define]:release path/to/file.nimBuild a release binary optimized for low file size
nim [c|compile] [-d|--define]:release --opt:size path/to/file.nimGenerate HTML documentation for a module (output will be placed in the current directory)
nim doc path/to/file.nimCheck a file for syntax and semantics
nim check path/to/file.nimmade by @shridhargupta | data from tldr-pages