Skip to content

Commit c549e8b

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-36969-file-parameter (#321)
* DOCSP-36969-file-parameter * DOCSP-36969-file-parameter --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent db96285 commit c549e8b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

source/reference/options.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ General Options
4545

4646
.. include:: /includes/examples/ex-eval-multi.rst
4747

48+
.. option:: --file, -f <javascript>
49+
50+
Runs a script from the command line without entering the
51+
|mdb-shell| console.
52+
53+
For additional details and an example, see
54+
:ref:`mdb-shell-write-scripts-command-line`.
55+
4856
.. option:: --help, -h
4957

5058
Returns information on the options and use of the |mdb-shell|.

source/write-scripts.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ The following example creates and executes a script that:
127127
script is not in the current working directory or the full specified
128128
path, the |mdb-shell| cannot access the file.
129129

130+
.. _mdb-shell-write-scripts-command-line:
131+
130132
Execute a Script From the Command Line
131133
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132134

0 commit comments

Comments
 (0)