saar drimer  committed 106f08a

added a no-flash commandline option

  • Participants
  • Parent commits 9bf7e23

Comments (0)

Files changed (1)

                       action='store_true', dest='no_layer_index', default=False,
                       help='Do not add layer index to Gerbers')
+    argp.add_argument('--no-flashes',
+                      action='store_true', dest='no_flashes', default=False,
+                      help='Do not add pad flashes to Gerbers')
     argp.add_argument('--renumber-refdefs', nargs='?',
                       dest='renumber', default=False,
                       help="Renumber refdefs (valid options are 'top_to_bottom', 'bottom_to_top', 'left_to_right', 'right_to_left'")
         cfg['board']['no_layer_index'] = False
+    if cmdline_args.no_flashes is True:
+        cfg['board']['no_flashes'] = True
+    else:
+        cfg['board']['no_flashes'] = False
     return cfg