Skip to content

Commit

Permalink
Add missing options (issue-34)
Browse files Browse the repository at this point in the history
  • Loading branch information
masaccio committed May 15, 2024
1 parent 303c0a3 commit 07f6b67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compact_json/_compact_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,12 @@ def die(message: str) -> None:
parser.print_help()
else:
formatter = Formatter()
formatter.comma_padding = args.comma_padding
formatter.colon_padding = args.colon_padding
formatter.max_inline_length = args.max_inline_length
formatter.max_inline_complexity = args.max_inline_complexity
formatter.max_compact_list_complexity = args.max_compact_list_complexity
formatter.multiline_compact_dict = args.multiline_compact_dict
formatter.indent_spaces = args.indent
if args.crlf:
formatter.json_eol_style = EolStyle.CRLF
Expand Down

0 comments on commit 07f6b67

Please sign in to comment.