summary refs log tree commit diff stats
path: root/doc/nimfix.rst
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-06-07 04:04:49 +0200
committerAraq <rumpf_a@web.de>2016-06-07 04:04:49 +0200
commiteed012891641c294b62657e960693eb867f8da5b (patch)
treedac52fe812f91a3042edde03b762514dad4a853d /doc/nimfix.rst
parent4812d413763ee6438f8dc4b3ca44d067a7c531ac (diff)
downloadNim-eed012891641c294b62657e960693eb867f8da5b.tar.gz
renamed most remaining .txt documentation files to .rst
Diffstat (limited to 'doc/nimfix.rst')
-rw-r--r--doc/nimfix.rst56
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/nimfix.rst b/doc/nimfix.rst
new file mode 100644
index 000000000..62064fe69
--- /dev/null
+++ b/doc/nimfix.rst
@@ -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.
+
+