aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbolint b/sbolint
index c9767b4..d95b3bd 100755
--- a/sbolint
+++ b/sbolint
@@ -21,7 +21,8 @@ intended for SlackBuild authors and maintainers, and can cut down on
The [build] arguments must be either directories or tarballs, each
containing a SlackBuild script, slack-desc, README, and .info file.
-With no [build] arguments, the current directory is checked.
+With no [build] arguments, the current directory is checked. To
+read a list of builds from standard input, use B<->.
B<sbolint> will flag errors for problems that would prevent the
build from being accepted by the upload form (or by the SBo admins,
@@ -366,6 +367,10 @@ GetOptions(
"mono|no-color|no-colour|m" => sub { $color_output = 0; },
) or die_usage("Error in command line options");
+if(@ARGV && $ARGV[0] eq '-') {
+ $stdin = 1;
+}
+
if($color_output) {
$red = "\x1b[1;31m";
$yellow = "\x1b[1;33m";