github.com/klaytn/klaytn@v1.12.1/cmd/utils/app.go (about)

     1  // Modifications Copyright 2018 The klaytn Authors
     2  // Copyright 2015 The go-ethereum Authors
     3  // This file is part of go-ethereum.
     4  //
     5  // go-ethereum is free software: you can redistribute it and/or modify
     6  // it under the terms of the GNU General Public License as published by
     7  // the Free Software Foundation, either version 3 of the License, or
     8  // (at your option) any later version.
     9  //
    10  // go-ethereum is distributed in the hope that it will be useful,
    11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    13  // GNU General Public License for more details.
    14  //
    15  // You should have received a copy of the GNU General Public License
    16  // along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
    17  //
    18  // This file is derived from cmd/utils/flags.go (2018/06/04).
    19  // Modified and improved for the klaytn development.
    20  
    21  package utils
    22  
    23  import (
    24  	"os"
    25  	"path/filepath"
    26  
    27  	"github.com/urfave/cli/v2"
    28  )
    29  
    30  // NewApp creates an app with sane defaults.
    31  func NewCLI() *cli.App {
    32  	app := cli.NewApp()
    33  	app.Name = filepath.Base(os.Args[0])
    34  	// app.Author = ""
    35  	// app.Email = ""
    36  	return app
    37  }