updated README and improved help message
This commit is contained in:
parent
94053e443a
commit
e112fbe7ec
2 changed files with 15 additions and 2 deletions
13
README.md
13
README.md
|
@ -6,3 +6,16 @@ A JSON-Getter written in D for bayernfahrplan
|
||||||
|
|
||||||
bayernfahrplan is a tool wich lets you fetch departure tables from
|
bayernfahrplan is a tool wich lets you fetch departure tables from
|
||||||
bayernfahrplan.de and output them as JSON.
|
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.
|
||||||
|
```
|
|
@ -25,7 +25,7 @@ void main(string[] args)
|
||||||
|
|
||||||
if (helpInformation.helpWanted)
|
if (helpInformation.helpWanted)
|
||||||
{
|
{
|
||||||
defaultGetoptPrinter("Some information about the program.", helpInformation.options);
|
defaultGetoptPrinter("Usage: ./learncrypt [options]\n\n Options:", helpInformation.options);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue