From e7fe7c3114c8d8ca3ecad7d141f32ec266524baa Mon Sep 17 00:00:00 2001 From: Etienne Millon Date: Thu, 6 Sep 2018 17:56:02 +0200 Subject: [PATCH] Document --watch flag Signed-off-by: Etienne Millon --- doc/usage.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/usage.rst b/doc/usage.rst index 94e3ad10..b8bcf957 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -189,6 +189,14 @@ specific sub-directory and its children by using: - ``dune build @foo/bar/runtest`` - ``dune runtest foo/bar`` +Watch mode +========== + +The ``dune build`` and ``dune runtest`` commands support a ``-w`` (or +``--watch``) flag. When it is passed, dune will perform the action as usual, and +then wait for file changes and rebuild (or rerun the tests). This feature +requires ``inotifywait`` or ``fswatch`` to be installed. + Launching the Toplevel (REPL) =============================