summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-02-28 23:00:37 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-02-28 23:00:52 +0100
commit51935c47b0f1c93df28c92fce96ba80501d561e0 (patch)
tree0e1cc8b23049c025c79701170aca56baefa52bb0
parent99ae9269f0163e79e3a20a92f872c327d681cf30 (diff)
downloadNim-51935c47b0f1c93df28c92fce96ba80501d561e0.tar.gz
deprecate parseopt2 stdlib module
-rw-r--r--changelog.md2
-rw-r--r--lib/pure/parseopt2.nim1
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 1cd22c4da..955648c20 100644
--- a/changelog.md
+++ b/changelog.md
@@ -215,6 +215,8 @@ styledEcho "Red on Green.", resetStyle
 - ``db_mysql`` module: ``DbConn`` is now a ``distinct`` type that doesn't expose the
   details of the underlying ``PMySQL`` type.
 
+- ``parseopt2`` is now deprecated, use ``parseopt`` instead.
+
 ### Language additions
 
 - It is now possible to forward declare object types so that mutually
diff --git a/lib/pure/parseopt2.nim b/lib/pure/parseopt2.nim
index a2ff9bf0c..2b63663eb 100644
--- a/lib/pure/parseopt2.nim
+++ b/lib/pure/parseopt2.nim
@@ -17,6 +17,7 @@
 ## 2. long option - ``--foo:bar``, ``--foo=bar`` or ``--foo``
 ## 3. argument - everything else
 
+{.deprecated.}
 {.push debugger: off.}
 
 include "system/inclrtl"