Added option to skip the pre-flight actions
This commit is contained in:
parent
ea18fb7be0
commit
e4b94eec08
|
|
@ -30,6 +30,8 @@ def main():
|
|||
help='Generate the outputs not listed as targets')
|
||||
group.add_argument('-q', '--quiet', action='store_true',
|
||||
help='remove information logs')
|
||||
parser.add_argument('-s', '--skip-pre', action='store_true',
|
||||
help='skip pre-flight actions')
|
||||
group.add_argument('-v', '--verbose', action='store_true',
|
||||
help='show debugging information')
|
||||
|
||||
|
|
@ -64,7 +66,7 @@ def main():
|
|||
|
||||
# Set up the plotter and do it
|
||||
plotter = kiplot.Plotter(cfg)
|
||||
plotter.plot(args.board_file, args.target, args.invert_sel)
|
||||
plotter.plot(args.board_file, args.target, args.invert_sel, args.skip_pre)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class Plotter(object):
|
|||
def __init__(self, cfg):
|
||||
self.cfg = cfg
|
||||
|
||||
def plot(self, brd_file, target, invert):
|
||||
def plot(self, brd_file, target, invert, skip_pre):
|
||||
|
||||
logger.debug("Starting plot of board {}".format(brd_file))
|
||||
|
||||
|
|
@ -49,7 +49,10 @@ class Plotter(object):
|
|||
|
||||
logger.debug("Board loaded")
|
||||
|
||||
self._preflight_checks(brd_file)
|
||||
if not skip_pre:
|
||||
self._preflight_checks(brd_file)
|
||||
else:
|
||||
logger.debug("Skipping pre-flight actions")
|
||||
|
||||
n = len(target)
|
||||
if n == 0 and invert:
|
||||
|
|
|
|||
Loading…
Reference in New Issue