app 객체에 필요한 속성들을 set up
app.Action = geth
app.Before : Action 이전에 실행할 함수
app.Before = func(ctx *cli.Context) error {
// context에서 모든 global flag value들을 사용할 수 있게 해줌
flags.MigrateGlobalFlags(ctx)
// > internal/flags/helpers.go
// cli flag를 기반으로 profiling, logging 초기화
return debug.Setup(ctx)
// dir : internal/debug/flags.go
}
app.After : 종료시 호출될 함수
app.After = ...