Beautify doc strings of edge settings and sort argument entries

This commit is contained in:
Florian Festi 2016-10-31 22:06:52 +01:00
parent 3a0df10866
commit c816de811b
1 changed files with 9 additions and 9 deletions

View File

@ -143,8 +143,9 @@ class Settings(object):
descriptions[m.group(1)] = m.group(2) descriptions[m.group(1)] = m.group(2)
group = parser.add_argument_group(lines[0] or lines[1]) group = parser.add_argument_group(lines[0] or lines[1])
for name, default in (list(cls.absolute_params.items()) + group.prefix = prefix
list(cls.relative_params.items())): for name, default in (sorted(cls.absolute_params.items()) +
sorted(cls.relative_params.items())):
group.add_argument("--%s_%s" % (prefix, name), group.add_argument("--%s_%s" % (prefix, name),
type=type(default), type=type(default),
action="store", default=default, action="store", default=default,
@ -435,14 +436,13 @@ class SlottedEdge(BaseEdge):
############################################################################# #############################################################################
class FingerJointSettings(Settings): class FingerJointSettings(Settings):
"""Settings for finger joints """Settings for Finger Joints
Values: Values:
* absolute * absolute
* surroundingspaces : 2 : maximum space at the start and end in multiple * surroundingspaces : 2 : maximum space at the start and end in multiple of normal spaces
of normal spaces
* relative (in multiples of thickness) * relative (in multiples of thickness)
@ -647,7 +647,7 @@ class CrossingFingerHoleEdge(BaseEdge):
############################################################################# #############################################################################
class StackableSettings(Settings): class StackableSettings(Settings):
"""Settings for StackableEdge classes """Settings for Stackable Edges
Values: Values:
@ -726,7 +726,7 @@ class StackableEdgeTop(StackableEdge):
############################################################################# #############################################################################
class HingeSettings(Settings): class HingeSettings(Settings):
"""Settings for Hinge and HingePin classes """Settings for Hinges and HingePins
Values: Values:
* absolute_params * absolute_params
@ -1198,7 +1198,7 @@ class ClickEdge(ClickConnector):
############################################################################# #############################################################################
class DoveTailSettings(Settings): class DoveTailSettings(Settings):
"""Settings used for dove tail joints """Settings for Dove Tail Joints
Values: Values:
@ -1281,7 +1281,7 @@ class DoveTailJointCounterPart(DoveTailJoint):
class FlexSettings(Settings): class FlexSettings(Settings):
"""Settings for one directional flex cuts """Settings for one directional Flex Cuts
Values: Values: