From c09112454417693693c265963b1f829695611b2d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 7 Apr 2015 21:20:57 -0400 Subject: add --help option for sbofixinfo --- sbofixinfo | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sbofixinfo') diff --git a/sbofixinfo b/sbofixinfo index fc7b8e0..3e3aa2b 100755 --- a/sbofixinfo +++ b/sbofixinfo @@ -111,7 +111,14 @@ B(1), B(1) PRGNAM VERSION HOMEPAGE DOWNLOAD MD5SUM DOWNLOAD_x86_64 MD5SUM_x86_64 REQUIRES MAINTAINER EMAIL /; -die "$SELF v$VERSION\nUsage: $SELF [-b] infofile \n" unless @ARGV; +die "$SELF v$VERSION\nUsage: $SELF [--help] [-b] infofile \n" unless @ARGV; + +if($ARGV[0] eq '--help') { + no warnings; + require FindBin; + system("perldoc $FindBin::RealScript"); + exit 0; +} if($ARGV[0] eq '-b') { $backup = 1; -- cgit v1.2.3