'min' => 1,
'max' => 1,
),
+ 'name' => array(
+ 'desc' => 'name of the company',
+ 'short' => 'n',
+ 'default' => '',
+ 'min' => 1,
+ 'max' => 1,
+ ),
+ 'comptype' => array(
+ 'desc' => 'the type of company',
+ 'short' => 't',
+ 'default' => '',
+ 'min' => 1,
+ 'max' => 1,
+ ),
);
die("DONE! \n");
}
+ if($args == 'Company'){
+ if(empty($opt['name']) || empty($opt['comptype'])){
+ die("Missing company name or type! Try --name [the name of company] -- comptype [the type of company] \n");
+ }
+
+ die("DONE! \n");
+ }
+
$this->importSQL();
$this->runUpdateModulesData();