Skip to content

Commit 2919093

Browse files
Merge pull request #34 from MrcSnm/master
Mention subpackage usage
2 parents 9e51a6b + 5aa2174 commit 2919093

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

views/advanced_usage.dt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ block body
3434

3535
dl
3636
dt <code>dub add-path</code>
37-
dd Adds a local search directory. All direct subdirectories will be searched for packages. Local search directories are preferred over packages downloaded from the registry.
37+
dd Adds a local search directory. All direct subdirectories will be searched for packages. Local search directories are always searched before looking up packages from the registry.
3838

3939
dt <code>dub add-local</code>
4040
dd Similar to the above, but only adds a single package directory.
@@ -49,3 +49,10 @@ block body
4949
dd You can specify arbitrary versions, branches, and paths in the <code>dub.selections.json</code> file, even if they contradict the dependency specification of the packages involved (note that DUB will output a warning in that case).
5050

5151
p Execute <code>dub &lt;command&gt; -h</code> for more information on these commands.
52+
53+
h2#subpkg Managing subpackages
54+
55+
p For adding subpackages from the registry, execute <code> dub add &lt;packagename&gt;:&lt;subpackage&gt; </code>
56+
57+
p If you need to compile a subpackage only, use <code> dub build :&lt;subpackage&gt; </code>
58+

0 commit comments

Comments
 (0)