mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-31 07:59:49 +00:00
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`.
This commit is contained in:
1 parent
186fa587cf
commit
ae0f7e58b0
3 files changed
+16
-9
No files matched your search
@@ -31,7 +31,8 @@ use sp_core::crypto::Ss58Codec;
|
||||
about = "Utility for generating and restoring with Substrate keys",
|
||||
)]
|
||||
pub enum Subkey {
|
||||
/// Generate a random node libp2p key, save it to file and print its peer ID
|
||||
/// Generate a random node libp2p key, save it to file or print it to stdout
|
||||
/// and print its peer ID to stderr.
|
||||
GenerateNodeKey(GenerateNodeKeyCmd),
|
||||
|
||||
/// Generate a random account
|
||||
|
||||
Reference in new issue
Block a user