basicopt.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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. Arguments:
  7. arguments are passed to the program being run (if --run option is selected)
  8. Options:
  9. -p, --path:PATH add path to search paths
  10. -d, --define:SYMBOL(:VAL)
  11. define a conditional symbol
  12. (Optionally: Define the value for that symbol,
  13. see: "compile time define pragmas")
  14. -u, --undef:SYMBOL undefine a conditional symbol
  15. -f, --forceBuild:on|off 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. -a, --assertions:on|off turn assertions on|off
  21. --opt:none|speed|size optimize not at all or for speed|size
  22. Note: use -d:release for a release build!
  23. --debugger:native Use native debugger (gdb)
  24. --app:console|gui|lib|staticlib
  25. generate a console app|GUI app|DLL|static library
  26. -r, --run run the compiled program with given arguments
  27. --fullhelp show all command line switches
  28. -h, --help show this help
  29. -v, --version show detailed version information
  30. Note, single letter options that take an argument require a colon. E.g. -p:PATH.