diff --git a/src/index.ts b/src/index.ts index e4c031c..5d55139 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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)) .command('$0', 'Run an query-subgraph server', yargsOptions, (argv) => { startServer(argv); })