From d28764821bf4953fa31af8807357d0233333c984 Mon Sep 17 00:00:00 2001 From: mgaertner Date: Mon, 26 Sep 2011 10:28:02 +0000 Subject: [PATCH] instantfpc: nicer help text git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2014 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- applications/instantfpc/instantfpc.pas | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/applications/instantfpc/instantfpc.pas b/applications/instantfpc/instantfpc.pas index 384c55e20..d01e02a1e 100644 --- a/applications/instantfpc/instantfpc.pas +++ b/applications/instantfpc/instantfpc.pas @@ -33,8 +33,13 @@ Procedure Usage; begin writeln('instantfpc '+Version); writeln; + writeln('Run pascal source files as scripts.'); + writeln('Normal usage is to add to a program source file a first line'); + writeln('("shebang") "#!/usr/bin/instantfpc".'); + writeln('Then you can execute the source directly in the terminal/console.'); + writeln; writeln('instantfpc -h'); - writeln(' This help message.'); + writeln(' Print this help message and exit.'); writeln; writeln('instantfpc -v'); writeln(' Print version and exit.'); @@ -53,17 +58,16 @@ begin writeln(' passed to the compiler as first parameters.'); writeln; writeln('instantfpc --get-cache'); - writeln(' Prints cache directory to stdout.'); + writeln(' Prints current cache directory and exit.'); writeln; - writeln('instantfpc --set-cache='); + writeln('Options:'); + writeln; + writeln(' --set-cache='); writeln(' Set the cache to be used. Otherwise using environment variable'); writeln(' INSTANTFPCCACHE.'); writeln; - writeln('instantfpc --compiler='); + writeln(' --compiler='); writeln(' Normally fpc is searched in PATH and used as compiler.'); - writeln; - writeln('Normal usage is to add as first line ("shebang") "#!/usr/bin/instantfpc"'); - writeln('to a program source file. Then you can execute the source like a script.'); Halt(0); end;