Skip to content

Commit

Permalink
agent: if alias does not exist try the actual flag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
saihaj committed Jan 24, 2024
1 parent 5a74382 commit 0f48b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/indexer-agent/src/commands/start-multi-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function parseNetworkSpecifications(
argv: any,
logger: Logger,
): spec.NetworkSpecification[] {
const dir: string = argv.dir
const dir: string = argv.dir || argv['network-specifications-directory']
const yamlFiles = scanDirectoryForYamlFiles(dir, logger)
return parseYamlFiles(yamlFiles)
}
Expand Down

0 comments on commit 0f48b17

Please sign in to comment.