Class: ReverseTunnel::CLI::Global

Inherits:
Base
  • Object
show all
Defined in:
lib/reverse-tunnel/cli.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments

Instance Method Summary collapse

Methods inherited from Base

#configure, #initialize, #options

Constructor Details

This class inherits a constructor from ReverseTunnel::CLI::Base

Instance Method Details

#parserObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/reverse-tunnel/cli.rb', line 42

def parser
  @parser ||= Trollop::Parser.new do
    banner "Usage:\n reverse-client [global options] server|client [options]\n\nwhere [global options] are:\n"

    opt :debug, "Enable debug messages"
    opt :syslog, "Send log messages to syslog"

    version ReverseTunnel::VERSION

    stop_on "server", "client"
  end
end