forked from mirrors/principia
Fix up usage instructions for featured-list-creator
Make it more in line with how it is for the other util programs
This commit is contained in:
parent
66923575b4
commit
6ea828e4d3
2 changed files with 3 additions and 4 deletions
|
|
@ -4,13 +4,12 @@ This is a C program that generates a featured list file (`fl.cache`) from JSON d
|
|||
The program requires the jansson library for JSON parsing, and will attempt to statically link against it by default. You can do `make STATIC=0` to link dynamically instead.
|
||||
|
||||
## Usage
|
||||
There are two optional arguments for specifying the input JSON file and output `fl.cache` file. The default values are below:
|
||||
|
||||
```bash
|
||||
./featured-list-creator data/data.json fl.cache
|
||||
featured-list-creator <input-json> <output-file>
|
||||
```
|
||||
|
||||
## Format
|
||||
## JSON Format
|
||||
The format of the input JSON file is as follows:
|
||||
|
||||
```json
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ void write(FILE *f, const char* value) {
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc < 3) {
|
||||
printf("Usage: %s [data.json] [fl.cache]\n", argv[0]);
|
||||
printf("Usage: %s <data.json> <fl.cache>\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue