.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. .TH NIM "1" "December 2021" "nim 1.6.2-1~bpo11+1" "User Commands" .SH NAME nim \- Nim Language Compiler .SH DESCRIPTION Nim Compiler Version 1.6.2 [Linux: amd64] Compiled at 2021\-12\-25 Copyright \(co 2006\-2021 by Andreas Rumpf :: .IP nim command [options] [projectfile] [arguments] .SS "Command:" .TP compile, c compile project with default code generator (C) .TP r compile to \fI\,$nimcache/projname\/\fP, run with [arguments] using backend specified by `\-\-backend` (default: c) .TP doc generate the documentation for inputfile for backend specified by `\-\-backend` (default: c) .SS "Arguments:" .IP arguments are passed to the program being run (if \fB\-\-run\fR option is selected) .SH OPTIONS .TP \fB\-p\fR, \fB\-\-path\fR:PATH add path to search paths .TP \fB\-d\fR, \fB\-\-define\fR:SYMBOL(:VAL) define a conditional symbol (Optionally: Define the value for that symbol, see: "compile time define pragmas") .TP \fB\-u\fR, \fB\-\-undef\fR:SYMBOL undefine a conditional symbol .TP \fB\-f\fR, \fB\-\-forceBuild\fR:on|off force rebuilding of all modules .TP \fB\-\-stackTrace\fR:on|off turn stack tracing on|off .TP \fB\-\-lineTrace\fR:on|off turn line tracing on|off .TP \fB\-\-threads\fR:on|off turn support for multi\-threading on|off .TP \fB\-x\fR, \fB\-\-checks\fR:on|off turn all runtime checks on|off .TP \fB\-a\fR, \fB\-\-assertions\fR:on|off turn assertions on|off .TP \fB\-\-opt\fR:none|speed|size optimize not at all or for speed|size Note: use \fB\-d\fR:release for a release build! .TP \fB\-\-debugger\fR:native use native debugger (gdb) .TP \fB\-\-app\fR:console|gui|lib|staticlib generate a console app|GUI app|DLL|static library .TP \fB\-r\fR, \fB\-\-run\fR run the compiled program with given arguments .TP \fB\-\-eval\fR:cmd evaluate nim code directly; e.g.: `nim \fB\-\-eval\fR:"echo 1"` defaults to `e` (nimscript) but customizable: `nim r \fB\-\-eval\fR:'for a in stdin.lines: echo a'` .TP \fB\-\-fullhelp\fR show all command line switches .TP \fB\-h\fR, \fB\-\-help\fR show this help .TP \fB\-v\fR, \fB\-\-version\fR show detailed version information .PP Note, single letter options that take an argument require a colon. E.g. \fB\-p\fR:PATH. .SH "REPORTING BUGS" https://github.com/nim-lang/Nim/issues .SH "SEE ALSO" The nim-doc package.