Skip to content

Commit ecac194

Browse files
mbolivar-nordicnashif
authored andcommitted
doc: west: fix submodule update info
Add missing dashes. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 962e361 commit ecac194

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/guides/west/built-in.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ with the ``--rebase`` option or without it:
204204
.. code-block::
205205
206206
# without --rebase, e.g. "west update":
207-
git submodule update init --checkout --recursive
207+
git submodule update --init --checkout --recursive
208208
209209
# with --rebase, e.g. "west update --rebase":
210-
git submodule update init --rebase --recursive
210+
git submodule update --init --rebase --recursive
211211
212212
Otherwise, the project has ``submodules: <list-of-submodules>``. In this
213213
case, west runs one of the following in the project repository for each
@@ -217,10 +217,10 @@ with the ``--rebase`` option or without it:
217217
.. code-block::
218218
219219
# without --rebase, e.g. "west update":
220-
git submodule update init --checkout --recursive <submodule-path>
220+
git submodule update --init --checkout --recursive <submodule-path>
221221
222222
# with --rebase, e.g. "west update --rebase":
223-
git submodule update init --rebase --recursive <submodule-path>
223+
git submodule update --init --rebase --recursive <submodule-path>
224224
225225
.. _west-built-in-misc:
226226

0 commit comments

Comments
 (0)