Skip to content

Commit 0f48b17

Browse files
committed
agent: if alias does not exist try the actual flag
when trying to run locally for some reason yargs doesn't show me dir as a parsed arg, I would expect it to create aliases automatically so we can reference it. But adding this as safe guards for anyone it doesn't work.
1 parent 5a74382 commit 0f48b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/indexer-agent/src/commands/start-multi-network.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function parseNetworkSpecifications(
2828
argv: any,
2929
logger: Logger,
3030
): spec.NetworkSpecification[] {
31-
const dir: string = argv.dir
31+
const dir: string = argv.dir || argv['network-specifications-directory']
3232
const yamlFiles = scanDirectoryForYamlFiles(dir, logger)
3333
return parseYamlFiles(yamlFiles)
3434
}

0 commit comments

Comments
 (0)