Show the format flag when importing an account #277
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Address #253
By default show the
format
option when importing an account.This change will make it easier to import accounts generated as part of genesis creation.
Normally this flag is not used by users since they get their account by going through an idp via one of the wallets.
However there will soon be a tool available for running a local chain with a custom genesis.
In this scenario it's desirable to make it easy for users to import their generated accounts into the client so the client
is easy to use with their new custom chain.
Note also that the default value
mobile
is the same as before, so the user does not have to explicitly provide this flag if importing a mobile backup.Changes
Remove the
SHOW_ALL_OPTS
env variable and by default show all possible options at all times.Checklist
hard-to-understand areas.