Fixed drill output default value not shown in help.

The docstring macro can evaluate attributes.
This commit is contained in:
Salvador E. Tropea 2020-07-22 18:30:58 -03:00
parent a0a97d8cd6
commit 97e95ff7c5
1 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class DrillMap(Optionable):
def __init__(self):
super().__init__()
with document:
self.output = self._out_def
self.output = '%f-%i.%x' # self._out_def not supported by the macro
""" name for the map file, KiCad defaults if empty (%i='PTH_drill_map') """
self.type = 'pdf'
""" [hpgl,ps,gerber,dxf,svg,pdf] format for a graphical drill map """ # pragma: no cover
@ -26,7 +26,8 @@ class DrillReport(Optionable):
super().__init__()
with document:
self.filename = ''
""" name of the drill report. Not generated unless a name is specified. (%i='drill_report' %x='txt') """ # pragma: no cover
""" name of the drill report. Not generated unless a name is specified.
(%i='drill_report' %x='txt') """ # pragma: no cover
self._unkown_is_error = True