Skip to content

Commit

Permalink
Fix help text
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel committed Jul 17, 2024
1 parent 48b9b20 commit ad03ff0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/ctod/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main(string[] args)
{
if (args.length < 2)
{
stderr.writeln("give at least one file argument");
printHelp(args[0]);
return -1;
}
try
Expand Down Expand Up @@ -62,5 +62,6 @@ int main(string[] args)

void printHelp(string name)
{
writeln("Usage: ", name, " [FILES]\nOptions:\n --strip strip comments");
stderr.writeln("Usage: ", name, " [FILES]\n" ~
"A translated .d file will be written to the same directory as each C source file.");
}

0 comments on commit ad03ff0

Please sign in to comment.