From 1104d07e8beb2e30fce818d72b118e252bf56654 Mon Sep 17 00:00:00 2001 From: adriaanvanrossum Date: Sat, 20 Mar 2021 06:18:24 +0000 Subject: [PATCH] Run prettier via GitHub Action --- lib/build-yargs.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/build-yargs.js b/lib/build-yargs.js index e1312f0..de56035 100644 --- a/lib/build-yargs.js +++ b/lib/build-yargs.js @@ -1,29 +1,29 @@ module.exports = function () { - return require('yargs') - .usage('$0 [options] ') - .option('host', { - alias: 'h', - default: '127.0.0.1', - describe: 'database server host or socket directory' + return require("yargs") + .usage("$0 [options] ") + .option("host", { + alias: "h", + default: "127.0.0.1", + describe: "database server host or socket directory", }) - .option('port', { - alias: 'p', + .option("port", { + alias: "p", default: 5432, - describe: 'database server port' + describe: "database server port", }) - .option('user', { - alias: 'u', - default: 'postgres', - describe: 'user name to connect as' + .option("user", { + alias: "u", + default: "postgres", + describe: "user name to connect as", }) - .option('password', { - describe: 'password to use when connecting' + .option("password", { + describe: "password to use when connecting", }) - .option('silent', { + .option("silent", { default: false, - describe: 'should we output to stdout' + describe: "should we output to stdout", }) - .demand(1, 'you must provide a database name') + .demand(1, "you must provide a database name") .help() - .version() -} + .version(); +};