basicopt.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ::
  2. nim command [options] [projectfile] [arguments]
  3. Command:
  4. //compile, c compile project with default code generator (C)
  5. //doc generate the documentation for inputfile
  6. //doc2 generate the documentation for inputfile
  7. Arguments:
  8. arguments are passed to the program being run (if --run option is selected)
  9. Options:
  10. -p, --path:PATH add path to search paths
  11. -d, --define:SYMBOL(:VAL)
  12. define a conditional symbol
  13. (Optionally: Define the value for that symbol)
  14. -u, --undef:SYMBOL undefine a conditional symbol
  15. -f, --forceBuild force rebuilding of all modules
  16. --stackTrace:on|off turn stack tracing on|off
  17. --lineTrace:on|off turn line tracing on|off
  18. --threads:on|off turn support for multi-threading on|off
  19. -x, --checks:on|off turn all runtime checks on|off
  20. --objChecks:on|off turn obj conversion checks on|off
  21. --fieldChecks:on|off turn case variant field checks on|off
  22. --rangeChecks:on|off turn range checks on|off
  23. --boundChecks:on|off turn bound checks on|off
  24. --overflowChecks:on|off turn int over-/underflow checks on|off
  25. -a, --assertions:on|off turn assertions on|off
  26. --floatChecks:on|off turn all floating point (NaN/Inf) checks on|off
  27. --nanChecks:on|off turn NaN checks on|off
  28. --infChecks:on|off turn Inf checks on|off
  29. --nilChecks:on|off turn nil checks on|off
  30. --deadCodeElim:on|off whole program dead code elimination on|off
  31. --opt:none|speed|size optimize not at all or for speed|size
  32. Note: use -d:release for a release build!
  33. --debugger:native|endb use native debugger (gdb) | ENDB (experimental)
  34. --app:console|gui|lib|staticlib
  35. generate a console app|GUI app|DLL|static library
  36. -r, --run run the compiled program with given arguments
  37. --advanced show advanced command line switches
  38. -h, --help show this help
  39. Note, single letter options that take an argument require a colon. E.g. -p:PATH.