Skip to content

Commit

Permalink
chore: move compiler-url option in CLI to root command to be next to …
Browse files Browse the repository at this point in the history
…--external-api
  • Loading branch information
randomshinichi committed Jul 26, 2019
1 parent f893b51 commit b15da47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion cmd/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,4 @@ func init() {
contractCmd.AddCommand(compileCmd)
contractCmd.AddCommand(encodeCalldataCmd)
contractCmd.AddCommand(decodeCalldataCmd)
contractCmd.PersistentFlags().StringVarP(&compilerURL, "compiler-url", "c", "http://localhost:3080", "Compiler URL")
}
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func init() {
// will be global for your application.
RootCmd.PersistentFlags().StringVarP(&aeternity.Config.Node.URL, "external-api", "u", aeternity.Config.Node.URL, "node external API endpoint")
RootCmd.PersistentFlags().StringVarP(&aeternity.Config.Node.NetworkID, "network-id", "n", aeternity.Config.Node.NetworkID, "network ID for custom private net")
RootCmd.PersistentFlags().StringVarP(&compilerURL, "compiler-url", "c", "http://localhost:3080", "Compiler URL")
RootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "enable debug")
RootCmd.PersistentFlags().BoolVar(&aeternity.Config.Tuning.OutputFormatJSON, "json", false, "print output in json format")
}

0 comments on commit b15da47

Please sign in to comment.