File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def parse_args():
112
112
parser .add_argument (
113
113
"--check" ,
114
114
action = "store_true" ,
115
- help = "Don't format the file , just return the status." ,
115
+ help = "Don't write the files back , just return the status." ,
116
116
)
117
117
118
118
parser .add_argument (
@@ -122,6 +122,19 @@ def parse_args():
122
122
help = "Emit messages to stderr about files that were not changed." ,
123
123
)
124
124
125
+ parser .add_argument (
126
+ "--diff" ,
127
+ action = "store_true" ,
128
+ help = "Don't write the files back, just output a diff for each file on stdout." ,
129
+ )
130
+
131
+ parser .add_argument (
132
+ "-S" ,
133
+ "--skip-string-normalization" ,
134
+ action = "store_true" ,
135
+ help = "Don't normalize string quotes or prefixes." ,
136
+ )
137
+
125
138
return parser .parse_args ()
126
139
127
140
@@ -144,6 +157,10 @@ def main():
144
157
command .append ("--check" )
145
158
if args .verbose :
146
159
command .append ("--verbose" )
160
+ if args .diff :
161
+ command .append ("--diff" )
162
+ if args .skip_string_normalization :
163
+ command .append ("--skip-string-normalization" )
147
164
148
165
requested_paths = [path .resolve () for path in args .paths ]
149
166
You can’t perform that action at this time.
0 commit comments