Make `--file` optional for `generate-node-key` (#7043)
This pr makes the `--file` argument optional to `generate-node-key`. If the argument is not given, the secret node key will be printed to `stdout`. The public node key will always be printed to `stderr`.
Showing
- substrate/bin/utils/subkey/src/lib.rs 2 additions, 1 deletionsubstrate/bin/utils/subkey/src/lib.rs
- substrate/client/cli/src/commands/generate_node_key.rs 11 additions, 6 deletionssubstrate/client/cli/src/commands/generate_node_key.rs
- substrate/client/cli/src/commands/key.rs 3 additions, 2 deletionssubstrate/client/cli/src/commands/key.rs
Please register or sign in to comment