From 59e1801ca116d5ccf940cde4fefb94ce25410d37 Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Mon, 3 Dec 2018 20:29:46 +0100 Subject: [PATCH] docs: (#1200) Fixes ordering of command-line arguments. `substrate --help` shows usage as substrate `[FLAGS] [OPTIONS] [SUBCOMMAND]`, where `--chain=staging` is one of the possible OPTIONS, and `build-spec` is a possible SUBCOMMAND. The ordering should be `substrate --chain=staging build-spec` instead. Relates to issue raised by user attente in Riot https://matrix.to/#/!HzySYSaIhtyWrwiwEV:matrix.org/$154385734133299JuBZU:matrix.parity.io --- substrate/README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/README.adoc b/substrate/README.adoc index a531deb3fe..5b1df1e698 100644 --- a/substrate/README.adoc +++ b/substrate/README.adoc @@ -135,7 +135,7 @@ First let's get a template chainspec that you can edit. We'll use the "staging" [source, shell] ---- -substrate build-spec --chain=staging > ~/chainspec.json +substrate --chain=staging build-spec > ~/chainspec.json ---- Now, edit `~/chainspec.json` in your editor. There are a lot of individual fields for each module, and one very large one which contains the Webassembly code blob for this chain. The easiest field to edit is the block `period`. Change it to 10 (seconds):