From 9506afde49b032a4e5f25300535325dbac40dc12 Mon Sep 17 00:00:00 2001 From: kay Date: Mon, 15 Apr 2013 13:41:34 -0400 Subject: [PATCH] DOCS-1279 add shell method version() --- source/reference/method/version.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 source/reference/method/version.txt diff --git a/source/reference/method/version.txt b/source/reference/method/version.txt new file mode 100644 index 00000000000..b4fef4e8bda --- /dev/null +++ b/source/reference/method/version.txt @@ -0,0 +1,13 @@ +========= +version() +========= + +.. default-domain:: mongodb + +.. method:: version() + + Return the version of the :program:`mongo` shell as a string. + + .. versionchanged:: 2.4 + In previous versions of the shell, :method:`version()` would + print the version instead of returning a string.