File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,23 @@ cs launch scalafix:0.13.0 -- --version # Should say 0.13.0
443443
444444```
445445
446+ ### Multiple values for CLI flags
447+
448+ Some Scalafix CLI flags accept more than one value (for example ` --rules ` ,
449+ ` --files ` , or compiler options). Pass each value by repeating the flag instead
450+ of trying to comma-separate or space-separate them. For instance, when you need
451+ to forward several scalac options you would write:
452+
453+ ```
454+ scalafix \
455+ --rules RemoveUnused \
456+ --scalac-options -Wunused:imports \
457+ --scalac-options -Wvalue-discard
458+ ```
459+
460+ The CLI treats those repeated occurrences as a list, so both compiler options
461+ are forwarded to each Scalafix invocation.
462+
446463## Support in other build tools
447464
448465Scalafix is supported in other build tools via externally maintained plugins:
You can’t perform that action at this time.
0 commit comments