mirror of
https://github.com/typicode/json-server.git
synced 2025-08-01 06:34:02 +08:00
Update CLI
This commit is contained in:
@ -368,6 +368,8 @@ Options:
|
||||
--snapshots, -S Set snapshots directory [default: "."]
|
||||
--delay, -d Add delay to responses (ms)
|
||||
--id, -i Set database id property (e.g. _id) [default: "id"]
|
||||
--foreignKeySuffix, --fks Set foreign key suffix, (e.g. _id as in post_id)
|
||||
[default: "Id"]
|
||||
--quiet, -q Suppress log messages from output [boolean]
|
||||
--help, -h Show help [boolean]
|
||||
--version, -v Show version number [boolean]
|
||||
|
@ -65,7 +65,7 @@ module.exports = function () {
|
||||
},
|
||||
foreignKeySuffix: {
|
||||
alias: 'fks',
|
||||
description: 'Set foreign key suffix, (e.g. _id as in post_id)',
|
||||
description: 'Set foreign key suffix (e.g. _id as in post_id)',
|
||||
default: 'Id'
|
||||
},
|
||||
quiet: {
|
||||
|
Reference in New Issue
Block a user