Sha256: 3dce10ce80f2a5ac78b85382421a860b455113f0d03d8b92ffdeff86285e2118

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true
require 'optimist'

require_relative '../lib/binterm/bin_term'
require_relative '../lib/binterm/version'

options = Optimist.options do
	version "BinTerm #{BinTerm::VERSION} (c) 2018 Aaron Ten Clay"
	banner <<-EOS
This is a simple proof-of-concept for a binary terminal interface.

Usage:
	binterm [options] <serial device>

where [options] are:
	EOS

	opt :baud, 'Baud rate', default: 115200, type: :integer
end
options[:device_path] = ARGV[0]
options.delete :help
options.delete :version

Optimist.educate unless options[:device_path]


BinTerm::BinTerm.new(**options).run

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binterm-0.1.1 exe/binterm
binterm-0.1.0 exe/binterm