From cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 1 Apr 2016 21:55:30 +0200 Subject: cmd/geth, eth: move --genesis deprecation warning to cmd/geth This prevents display of the warning for --dev and --olympic. --- cmd/geth/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd') diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 5d5ab4559..3a6366f4d 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -359,6 +359,12 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso go metrics.CollectProcessMetrics(3 * time.Second) utils.SetupNetwork(ctx) + + // Deprecation warning. + if ctx.GlobalIsSet(utils.GenesisFileFlag.Name) { + common.PrintDepricationWarning("--genesis is deprecated. Switch to use 'geth init /path/to/file'") + } + return nil } -- cgit