Swiftformat: Shouldn't this error message to be rewritten?

Created on 28 Apr 2020  路  2Comments  路  Source: nicklockwood/SwiftFormat

I got this error when specifying tab usage in .swiftformat:

...
--indent tab
...

And I got this error message:

error: The --maxwidth option requires --tabwidth to also be set.

Shouldn't this error message to be rewritten?
It took me a while to find out that I needed to set --tabwidth value, and --maxwidth had nothing to do there.

https://github.com/nicklockwood/SwiftFormat/blob/9508a160654f03ce8ba6275efacdb160181c21d7/Sources/CommandLine.swift#L793

bug fixed in develop

Most helpful comment

Fixed in 0.44.8

All 2 comments

@byassine52 good point. I'll fix it.

Fixed in 0.44.8

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxDesiatov picture MaxDesiatov  路  3Comments

meherkasam picture meherkasam  路  3Comments

shawnkoh picture shawnkoh  路  3Comments

PompeiaPaetenari picture PompeiaPaetenari  路  4Comments

soranoba picture soranoba  路  3Comments