syncdomain.php: just use basename()
authorDenis Ovsienko <denis@ovsienko.info>
Thu, 13 Dec 2018 13:14:14 +0000 (13:14 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Thu, 13 Dec 2018 13:14:14 +0000 (13:14 +0000)
scripts/syncdomain.php

index 47476dc..55691df 100755 (executable)
@@ -10,7 +10,9 @@ require_once 'inc/init.php';
 
 function usage ($rc)
 {
-       echo "Usage: <this file> <options>\n";
+       $this_file = basename (__FILE__);
+       echo "Usage: {$this_file} <options>\n";
+       echo "Options:\n";
        echo "\t\t--vdid=<VLAN domain ID>\n";
        echo "\t\t--mode=pull\n";
        echo "\t\t--mode=pullall\n";