diff options
author | Araq <rumpf_a@web.de> | 2014-11-04 08:38:56 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-04 08:38:56 +0100 |
commit | 1f63d1c76e733812e5e61d81e83429f853511fe7 (patch) | |
tree | 37a91dccbf708885695b227dcf3c37db3250ff08 /doc | |
parent | 0a2296b12313b8ce84e8190b6200885fdb06bf96 (diff) | |
download | Nim-1f63d1c76e733812e5e61d81e83429f853511fe7.tar.gz |
documented nimfix
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nimfix.txt | 56 | ||||
-rw-r--r-- | doc/tools.txt | 4 |
2 files changed, 60 insertions, 0 deletions
diff --git a/doc/nimfix.txt b/doc/nimfix.txt new file mode 100644 index 000000000..6d78f3e3f --- /dev/null +++ b/doc/nimfix.txt @@ -0,0 +1,56 @@ +===================== + Nimfix User Guide +===================== + +:Author: Andreas Rumpf +:Version: |nimversion| + +**WARNING**: Nimfix is currently beta-quality. + +Nimfix is a tool to help you upgrade from Nimrod (<= version 0.9.6) to +Nim (=> version 0.10.0). + +It performs 3 different actions: + +1. It makes your code case consistent. +2. It renames every symbol that has a deprecation rule. So if a module has a + rule ``{.deprecated: [TFoo: Foo].}`` then ``TFoo`` is replaced by ``Foo``. +3. It can also check that your identifiers adhere to the official style guide + and optionally modify them to do so (via ``--styleCheck:auto``). + +Note that ``nimfix`` defaults to **overwrite** your code unless you +use ``--overwriteFiles:off``! But hey, if you do not use a version control +system by this day and age, your project is already in big trouble. + + +Installation +------------ + +Nimfix is part of the compiler distribution. Compile via:: + + nim c compiler/nimfix/nimfix.nim + mv compiler/nimfix/nimfix bin + +Or on windows:: + + nim c compiler\nimfix\nimfix.nim + move compiler\nimfix\nimfix.exe bin + +Usage +----- + +Usage: + nimfix [options] projectfile.nim + +Options: + + --overwriteFiles:on|off overwrite the original nim files. DEFAULT is ON! + --wholeProject overwrite every processed file. + --checkExtern:on|off style check also extern names + --styleCheck:on|off|auto performs style checking for identifiers + and suggests an alternative spelling; + 'auto' corrects the spelling. + +In addition, all command line options of Nim are supported. + + diff --git a/doc/tools.txt b/doc/tools.txt index 0b39762c6..7f2830879 100644 --- a/doc/tools.txt +++ b/doc/tools.txt @@ -18,3 +18,7 @@ The standard distribution ships with the following tools: - | `estp <estp.html>`_ | Nim's slow platform independent embedded stack trace profiler. + +- | `nimfix <nimfix.html>`_ + | Nimfix is a tool to help you upgrade from Nimrod (<= version 0.9.6) to + Nim (=> version 0.10.0). |