From e112fbe7ec92d77fda496fe5e7a2a45db388897c Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 14 May 2017 11:50:22 +0200 Subject: [PATCH] updated README and improved help message --- README.md | 15 ++++++++++++++- source/app.d | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f0e99a..012cc00 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,17 @@ A JSON-Getter written in D for bayernfahrplan --------------------------------------------- bayernfahrplan is a tool wich lets you fetch departure tables from -bayernfahrplan.de and output them as JSON. \ No newline at end of file +bayernfahrplan.de and output them as JSON. + +Usage +----- + +``` +Usage: ./learncrypt [options] + + Options: +-f --file The file that the data is written to. +-s --stop The bus stop for which to fetch data. +-r --replacement-file The file that contais the direction name replacement info. +-h --help This help information. +``` \ No newline at end of file diff --git a/source/app.d b/source/app.d index db49108..0c638f7 100644 --- a/source/app.d +++ b/source/app.d @@ -25,7 +25,7 @@ void main(string[] args) if (helpInformation.helpWanted) { - defaultGetoptPrinter("Some information about the program.", helpInformation.options); + defaultGetoptPrinter("Usage: ./learncrypt [options]\n\n Options:", helpInformation.options); return; }