make daemon-mode the default if no arguments present.

This commit is contained in:
kestes%walrus.com 2003-08-17 16:23:59 +00:00
Родитель 580d63dcd0
Коммит 1d5c4e8c0f
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -2,8 +2,8 @@
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# $Revision: 1.35 $
# $Date: 2003-08-17 00:44:05 $
# $Revision: 1.36 $
# $Date: 2003-08-17 16:23:59 $
# $Author: kestes%walrus.com $
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/bin/tinder.cgi,v $
# $Name: $
@ -115,6 +115,9 @@ Daemon Mode Arguments
output is sent to standard out. The effect of this
run should be to update the webpages for every tree.
Default Arguments
If no arguments are given then daemon-mode is assumed.
Synopsis
@ -180,6 +183,11 @@ sub parse_args {
$NOIGNORE = 1;
}
# Default arguments
if ( !(scalar(keys %form)) ) {
$daemon_mode = 1;
}
# take care of the informational arguments
if(grep /version/, keys %form) {