Skip to content

Commit ab68756

Browse files
committed
dustmite: Add --man
For consistency with other D tools. Closes #83.
1 parent 1c54227 commit ab68756

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dustmite.d

+10-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct RemoveRule { Regex!char regexp; string shellGlob; bool remove; }
147147

148148
int main(string[] args)
149149
{
150-
bool force, dumpHtml, dumpJson, readJson, showTimes, stripComments, obfuscate, fuzz, keepLength, showHelp, showVersion, noOptimize, inPlace;
150+
bool force, dumpHtml, dumpJson, readJson, showTimes, stripComments, obfuscate, fuzz, keepLength, showHelp, openWiki, showVersion, noOptimize, inPlace;
151151
string coverageDir;
152152
RemoveRule[] removeRules;
153153
string[] splitRules;
@@ -195,6 +195,7 @@ int main(string[] args)
195195
"i|in-place", &inPlace,
196196
"json", &readJson,
197197
"h|help", &showHelp,
198+
"man", &openWiki,
198199
"V|version", &showVersion,
199200
);
200201
foreach (ref arg; args)
@@ -214,6 +215,13 @@ int main(string[] args)
214215
return 0;
215216
}
216217

218+
if (openWiki)
219+
{
220+
browse("https://github.com/CyberShadow/DustMite/wiki");
221+
if (args.length == 1)
222+
return 0;
223+
}
224+
217225
if (showHelp || args.length == 1 || args.length>3)
218226
{
219227
stderr.writef(q"EOS
@@ -259,6 +267,7 @@ EOS");
259267
stderr.write(q"EOS
260268
-h, --help Show this message
261269
Less interesting options:
270+
--man Launch the project wiki web page in a web browser
262271
-V, --version Show program version
263272
--strategy STRAT Set strategy (careful/lookback/pingpong/indepth/inbreadth)
264273
--dump Dump parsed tree to PATH.dump file

0 commit comments

Comments
 (0)