@@ -34,7 +34,7 @@ import (
3434
3535var (
3636 makedagCommand = cli.Command {
37- Action : makedag ,
37+ Action : utils . MigrateFlags ( makedag ) ,
3838 Name : "makedag" ,
3939 Usage : "Generate ethash DAG (for testing)" ,
4040 ArgsUsage : "<blockNum> <outputDir>" ,
@@ -47,7 +47,7 @@ Regular users do not need to execute it.
4747` ,
4848 }
4949 versionCommand = cli.Command {
50- Action : version ,
50+ Action : utils . MigrateFlags ( version ) ,
5151 Name : "version" ,
5252 Usage : "Print version numbers" ,
5353 ArgsUsage : " " ,
@@ -57,7 +57,7 @@ The output of this command is supposed to be machine-readable.
5757` ,
5858 }
5959 licenseCommand = cli.Command {
60- Action : license ,
60+ Action : utils . MigrateFlags ( license ) ,
6161 Name : "license" ,
6262 Usage : "Display license information" ,
6363 ArgsUsage : " " ,
@@ -103,7 +103,7 @@ func version(ctx *cli.Context) error {
103103 }
104104 fmt .Println ("Architecture:" , runtime .GOARCH )
105105 fmt .Println ("Protocol Versions:" , eth .ProtocolVersions )
106- fmt .Println ("Network Id:" , ctx . GlobalInt ( utils . NetworkIdFlag . Name ) )
106+ fmt .Println ("Network Id:" , eth . DefaultConfig . NetworkId )
107107 fmt .Println ("Go Version:" , runtime .Version ())
108108 fmt .Println ("Operating System:" , runtime .GOOS )
109109 fmt .Printf ("GOPATH=%s\n " , os .Getenv ("GOPATH" ))
0 commit comments