Sha256: 260ad896ccad2f5f6cf73e4bb185c163d08bdf1ca978c35de0f38683bcae54bc

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

#!/usr/bin/env ruby
=begin =======================================================================

# BINMAN 1                        2016-02-28                            5.1.0

## NAME

binman - deprecated; use binman-* instead

## SYNOPSIS

`binman` [*OPTION*]... *COMMAND*

## DESCRIPTION

Runs the fellow "`binman`-*COMMAND*" programs listed under "Commands" below.

> Note: This program is deprecated for removal in the next major version. To
> prepare yourself, please run the fellow binman-* programs directly instead.

## OPTIONS

`-h` [*PATTERN*], `--help` [*PATTERN*]
  Show this help manual and optionally search for *PATTERN* regular expression.

## COMMANDS

`text` ...
  Runs binman-text(1).

`roff` ...
  Runs binman-roff(1).

`html` ...
  Runs binman-html(1).

`show` ...
  Runs binman-show(1).

`help` ...
  Runs binman-help(1).

## SEE ALSO

binman-rake(1)

=end =========================================================================

require 'binman'

command, source = ARGV

if command == 'help'
  BinMan.help source, ARGV[2..-1]
  exit 111
else
  BinMan.help
  source ||= STDIN
  case command
  when 'show'
    BinMan.send(command, source)
  when 'text', 'roff', 'html'
    puts BinMan.send(command, source)
  else
    warn 'binman: invalid command; try --help'
    exit 1
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
binman-5.1.0 bin/binman