aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/codegangsta/cli/cli.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-06 10:00:41 +0800
committerFelix Lange <fjl@twurst.com>2015-03-06 10:57:13 +0800
commitbae7e93a9c5af679682f89b0f475e98c1eee9e58 (patch)
treebdf4c4fe1893c3e26d2c0dfd86204a1ea3d71085 /Godeps/_workspace/src/github.com/codegangsta/cli/cli.go
parentf9c6bc63df8170c6a3b1bb7848b92759b17e7d58 (diff)
downloadgo-tangerine-bae7e93a9c5af679682f89b0f475e98c1eee9e58.tar.gz
go-tangerine-bae7e93a9c5af679682f89b0f475e98c1eee9e58.tar.zst
go-tangerine-bae7e93a9c5af679682f89b0f475e98c1eee9e58.zip
cmd/ethereum: improve command line interface
The ethereum command line interface is now structured using subcommands. These separate the different tasks it can perform. Almost all flag names are backwards compatible. The key tasks have not been ported to subcommands since they will be replaced by the new accounts infrastructure very soon.
Diffstat (limited to 'Godeps/_workspace/src/github.com/codegangsta/cli/cli.go')
-rw-r--r--Godeps/_workspace/src/github.com/codegangsta/cli/cli.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/codegangsta/cli/cli.go b/Godeps/_workspace/src/github.com/codegangsta/cli/cli.go
new file mode 100644
index 000000000..b74254581
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/codegangsta/cli/cli.go
@@ -0,0 +1,19 @@
+// Package cli provides a minimal framework for creating and organizing command line
+// Go applications. cli is designed to be easy to understand and write, the most simple
+// cli application can be written as follows:
+// func main() {
+// cli.NewApp().Run(os.Args)
+// }
+//
+// Of course this application does not do much, so let's make this an actual application:
+// func main() {
+// app := cli.NewApp()
+// app.Name = "greet"
+// app.Usage = "say a greeting"
+// app.Action = func(c *cli.Context) {
+// println("Greetings")
+// }
+//
+// app.Run(os.Args)
+// }
+package cli