def create_global_args(args)
      Trollop.options(args) do
        version "bitsa v#{Bitsa::VERSION}"
        banner <<EOS
Usage: bitsa [global-options] [subcommand] [command-opts]

Global options are:
EOS
        opt :config_file, 'Configuration file',
            type: String, default: '~/.bitsa_config.yml'
        opt :auto_check,
            'Autocheck interval in days. 0 to disable (default: 1)',
            type: Integer
        opt :login, 'Login', type: String
        opt :password, 'Password', type: String

        stop_on SUB_COMMANDS

        banner <<EOS

bitsa subcommands
   update: get the latest changes from Gmail
   reload: Clear all cached addresses and reload from Gmail
   search: Search for the passed string
   skel:   Write a skeleton configuration file to standard output

Information about this program
EOS
      end
      # rubocop:enable Metrics/MethodLength
    end
def create_global_args(args)
      Trollop.options(args) do
        version "bitsa v#{Bitsa::VERSION}"
        banner <<EOS
Usage: bitsa [global-options] [subcommand] [command-opts]

Global options are:
EOS
        opt :config_file, 'Configuration file',
            type: String, default: '~/.bitsa_config.yml'
        opt :auto_check,
            'Autocheck interval in days. 0 to disable (default: 1)',
            type: Integer
        opt :login, 'Login', type: String
        opt :password, 'Password', type: String

        stop_on SUB_COMMANDS

        banner <<EOS

bitsa subcommands
   update: get the latest changes from Gmail
   reload: Clear all cached addresses and reload from Gmail
   search: Search for the passed string
   skel:   Write a skeleton configuration file to standard output

Information about this program
EOS
      end
      # rubocop:enable Metrics/MethodLength
    end
rubocop:disable Metrics/MethodLength

 Process cmd line arguments using Trollop.

 @example
   create_global_args(ARGV)

 @param args [String[]] Cmd line arguments.

 @return [Hash] arguments from command line.