20 lines
324 B
PostScript
20 lines
324 B
PostScript
![]() |
bool $showUsage=false;
|
||
|
|
||
|
if ($argc <= 1) {
|
||
|
$showUsage = true;
|
||
|
} else if ($argv[1] == "?") {
|
||
|
$showUsage = true;
|
||
|
} else {
|
||
|
int $i=1;
|
||
|
while ($i < $argc) {
|
||
|
echo "$argv[$i]";
|
||
|
$i++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if ($showUsage) {
|
||
|
echo "Usage: $argv[0] <text to echo>";
|
||
|
echo " echo text to the screen";
|
||
|
}
|
||
|
|
||
|
return true;
|