Skip to content

Commit c357bb8

Browse files
authored
Document how to compile single-file packages
1 parent 5c874ae commit c357bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/advanced_usage.dt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ block body
2222
writeln("Hello, World!");
2323
}
2424

25-
p This application can be executed by running <code>dub run --single hello.d</code>.
25+
p This application can be executed by running <code>dub run --single hello.d</code>, or just compiled with <code>dub build --single hello.d</code>.
2626

2727
p In addition to the normal method of passing commandline arguments, you can use the shorthand <code>dub hello.d &lt;arguments to hello&gt;</code>. This shorthand and the optional shebang allow you to run applications via <code>./hello &lt;arguments&gt;</code> from your shell if you set the executable bit of the file.
2828

0 commit comments

Comments
 (0)