#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG  				#
#							#
# Licensed under GNU GENERAL PUBLIC LICENSE v3    	#
#							#
# Copyright 2007 - 2014 Christopher Bratusek		#
#							#
#########################################################

case $1 in

	--help | -h | "")

		bsng-help -a "Christopher Roy Bratusek" -e "nano@tuxfamily.org" -h "http://www.nanolx.org/"\
			-l "GNU GPL v3" -n "bin2hex" -s "convert binaries to hexadecimals" -v "${BSNG_VERSION}" -y "2013"\
			-o "number:|convert binary to hexadecimals"

	;;

	*) 	echo "obase=16 ; ibase=2 ; $1" | bc ;;

esac