Skip to content

Commit

Permalink
yargs hideBin
Browse files Browse the repository at this point in the history
  • Loading branch information
yoozo committed Sep 15, 2024
1 parent de561ba commit e3321a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { hideBin } from 'yargs/helpers';
import yargs from 'yargs/yargs';
import { yargsOptions } from './config/yargs';
import { startServer } from './server';

yargs(process.argv.slice(2))
yargs(hideBin(process.argv))

Check warning on line 9 in src/index.ts

View workflow job for this annotation

GitHub Actions / code-style

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
.command('$0', 'Run an query-subgraph server', yargsOptions, (argv) => {
startServer(argv);
})
Expand Down

0 comments on commit e3321a8

Please sign in to comment.