codegangsta/cli — pull request #59 by gregb (2014-01-04 16:44:09+00:00)
Title: Add a function to an app to be run before any subcommands are run

Useful for things like loading a config file needed by all subcommands, but whose name needs to be specified as a global option.