Skip to content

Commit 268bd0b

Browse files
committed
init: Indent help text based of protocol flag
1 parent 19b208b commit 268bd0b

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/commands/init.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,32 @@ ${chalk.dim('Options:')}
2727
2828
--protocol <${protocolChoices.join('|')}>
2929
--product <subgraph-studio|hosted-service>
30-
Selects the product for which to initialize
31-
--studio Shortcut for --product subgraph-studio
32-
-g, --node <node> Graph node for which to initialize
33-
--allow-simple-name Use a subgraph name without a prefix (default: false)
34-
-h, --help Show usage information
30+
Selects the product for which to initialize
31+
--studio Shortcut for --product subgraph-studio
32+
-g, --node <node> Graph node for which to initialize
33+
--allow-simple-name Use a subgraph name without a prefix (default: false)
34+
-h, --help Show usage information
3535
3636
${chalk.dim('Choose mode with one of:')}
3737
3838
--from-contract <contract> Creates a scaffold based on an existing contract
39-
--from-example Creates a scaffold based on an example subgraph
39+
--from-example Creates a scaffold based on an example subgraph
4040
4141
${chalk.dim('Options for --from-contract:')}
4242
43-
--contract-name Name of the contract (default: Contract)
44-
--index-events Index contract events as entities
43+
--contract-name Name of the contract (default: Contract)
44+
--index-events Index contract events as entities
4545
4646
${chalk.dim.underline('Ethereum:')}
4747
48-
--abi <path> Path to the contract ABI (default: download from Etherscan)
48+
--abi <path> Path to the contract ABI (default: download from Etherscan)
4949
--network <${Protocol.availableNetworks().get('ethereum').join('|')}>
50-
Selects the network the contract is deployed to
50+
Selects the network the contract is deployed to
51+
5152
${chalk.dim.underline('NEAR:')}
5253
5354
--network <${Protocol.availableNetworks().get('near').join('|')}>
54-
Selects the network the contract is deployed to
55+
Selects the network the contract is deployed to
5556
`
5657

5758
const processInitForm = async (

0 commit comments

Comments
 (0)