@@ -69,20 +69,22 @@ Global Options:
6969
7070 fmt [schemas-or-directories...] [--check/-c] [--extension/-e <extension>]
7171 [--ignore/-i <schemas-or-directories>] [--keep-ordering/-k]
72+ [--indentation/-n <spaces>]
7273
7374 Format the input schemas in-place or check they are formatted.
7475 This command does not support YAML schemas yet.
7576
7677 lint [schemas-or-directories...] [--fix/-f] [--json/-j]
7778 [--extension/-e <extension>] [--ignore/-i <schemas-or-directories>]
7879 [--exclude/-x <rule-name>] [--only/-o <rule-name>] [--list/-l]
79- [--strict/-s]
80+ [--strict/-s] [--indentation/-n <spaces>]
8081
8182 Lint the input schemas and potentially fix the reported issues.
8283 The --fix/-f option is not supported when passing YAML schemas.
8384 Use --json/-j to output lint errors in JSON.
8485 Use --list/-l to print a summary of all enabled rules.
8586 Use --strict/-s to enable additional opinionated strict rules.
87+ Use --indentation/-n to keep indentation when auto-fixing
8688
8789 bundle <schema.json|.yaml> [--http/-h] [--extension/-e <extension>]
8890 [--ignore/-i <schemas-or-directories>] [--without-id/-w]
@@ -120,6 +122,7 @@ auto jsonschema_main(const std::string &program, const std::string &command,
120122 app.flag (" keep-ordering" , {" k" });
121123 app.option (" extension" , {" e" });
122124 app.option (" ignore" , {" i" });
125+ app.option (" indentation" , {" n" });
123126 app.parse (argc, argv, {.skip = 1 });
124127 return sourcemeta::jsonschema::cli::fmt (app);
125128 } else if (command == " inspect" ) {
@@ -141,6 +144,7 @@ auto jsonschema_main(const std::string &program, const std::string &command,
141144 app.option (" exclude" , {" x" });
142145 app.option (" only" , {" o" });
143146 app.option (" ignore" , {" i" });
147+ app.option (" indentation" , {" n" });
144148 app.parse (argc, argv, {.skip = 1 });
145149 return sourcemeta::jsonschema::cli::lint (app);
146150 } else if (command == " validate" ) {
0 commit comments