This module is intended to provide an interface to manage PWM on RLIEH systems ; rlieh-pwm is a part of the RLIEH project and can be used on Raspberry Pi.
In the CLI, at line 52, the default value is mentioned as such : (Default = 0.5)
Later on, at line 77 the variable DURATION is set to 0.5.
docopt can set the default value directly, so if line 52 becomes this : --duration=MINUTES Duration of effect in minutes. [Default = 0.5]
line 77 can be set as such : DURATION=float(arguments['--duration'])
DURATION will thusly be assigned the specified value if it was passed by the user, or the default value otherwise, causing the documented default value to be always identical to the actual default value.