$entete = array();
-$short_opts = "hci:kn:t:";
-
function usage()
{
echo "Usage: bomgen.php [OPTIONS] [INPUT FILE]\n";
echo "\n";
echo "Options:\n";
echo " -c Add cost information to the BOM\n";
- echo " -i Specifiy inventory CSV file\n";
- echo " -k Create digikey BOM submission file (tab-separated fields)\n";
- echo " -h Display this help and exit\n";
- echo " -n Number of cards/kits for digikey BOM submission\n";
- echo " -t BOM input type:\n";
- echo " pcad or altium\n";
+ echo " -i [FILE] Specifiy inventory CSV file\n";
+ echo " -k Create digikey BOM submission file (tab-separated fields)\n";
+ echo " -h Display this help and exit\n";
+ echo " -n [QTY] Number of cards/kits for digikey BOM submission\n";
+ echo " -r [REV] Specify BOM revision\n";
+ echo " -t [TYPE] BOM input type: pcad or altium\n";
}
+$short_opts = "hci:kn:r:t:";
+
$cg = new Console_Getopt();
/* Read the command line. */
case 'n':
$kits = $o[1];
break;
+ case 'r':
+ $revision = $o[1];
+ break;
case 'h':
usage();
exit(1);
xls_write_cell_gen(0, 0, "BOM " . $project_name,
XLS_FORMAT_TEXT, false, 18, FALSE, FALSE);
- xls_write_cell_gen(1, 0, "Révision (schéma): " . $revision,
+ xls_write_cell_gen(1, 0, "Révision: " . $revision,
XLS_FORMAT_TEXT, false, 16, FALSE, FALSE);
xls_write_cell_gen(1, 2, "Composants: " . $comp_total,