-
- Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
Additional configuration options were added in response to thise request #345
But the setting line_length: 80 is not picked up by gdformat due to the default being specific in docopt.
This if case will always return true
line_length = ( int(arguments["--line-length"]) if arguments["--line-length"] else config.get("line_length", DEFAULT_CONFIG["line_length"]) ) since docopt will add the --line-length argument if missing.
Since the default is now handled by DEFAULT_CONFIG, one solution is to just remove the default from docopt.
Metadata
Metadata
Assignees
Labels
No labels