From: Hugo Villeneuve Date: Wed, 22 Jan 2014 19:57:56 +0000 (-0500) Subject: Add option to specify project or board name X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=710ed081183796671bafcb8174d8c914f3db123f;p=eda-utils.git Add option to specify project or board name --- diff --git a/bomgen/bomgen.php b/bomgen/bomgen.php index 42d6ace..6ff6322 100755 --- a/bomgen/bomgen.php +++ b/bomgen/bomgen.php @@ -60,11 +60,12 @@ function usage() 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 " -p [NAME] Specify project or board name\n"; echo " -r [REV] Specify BOM revision\n"; echo " -t [TYPE] BOM input type: pcad or altium\n"; } -$short_opts = "hci:kn:r:t:"; +$short_opts = "hci:kn:p:r:t:"; $cg = new Console_Getopt(); @@ -97,6 +98,9 @@ if (sizeof($opts) > 0) { case 'n': $kits = $o[1]; break; + case 'p': + $project_name = $o[1]; + break; case 'r': $revision = $o[1]; break; @@ -313,7 +317,6 @@ if ($digikey_bom) { $row_num . ")"); } - /* TODO... */ if (empty($project_name)) { $project_name = "PROJECT NAME"; }