Skip to content

Commit bb25bc6

Browse files
committed
add --help
1 parent e405ae8 commit bb25bc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/app.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Flags:
4040
-ka - Keep assembly
4141
-al - Print assembly line numbers for callisto nodes
4242
-os OS - Set operating system for backend - see below
43+
--help - Shows this text
4344
4445
Backends and their operating systems:
4546
rm86 - Real mode x86, for bare-metal, dos
@@ -264,6 +265,10 @@ int main(string[] args) {
264265
os = args[i];
265266
break;
266267
}
268+
case "--help": {
269+
writeln(usage.strip());
270+
return 0;
271+
}
267272
default: {
268273
stderr.writefln("Unknown flag '%s'", args[i]);
269274
return 1;

0 commit comments

Comments
 (0)