@@ -193,6 +193,8 @@ def create_parser():
193193 parser .add_argument ('-v' , '--version' , action = 'version' , version = 'isort {0}' .format (__version__ ))
194194 parser .add_argument ('-vb' , '--verbose' , action = 'store_true' , dest = "verbose" ,
195195 help = 'Shows verbose output, such as when files are skipped or when a check is successful.' )
196+ parser .add_argument ('-q' , '--quiet' , action = 'store_true' , dest = "quiet" ,
197+ help = 'Shows extra quiet output, only errors are outputted.' )
196198 parser .add_argument ('-sp' , '--settings-path' , dest = "settings_path" ,
197199 help = 'Explicitly set the settings path instead of auto determining based on file location.' )
198200 parser .add_argument ('-ff' , '--from-first' , dest = 'from_first' ,
@@ -219,7 +221,8 @@ def main():
219221 if arguments .get ('recursive' , False ):
220222 file_names = iter_source_code (file_names )
221223 num_skipped = 0
222- print (INTRO )
224+ if not arguments .get ('quiet' , False ):
225+ print (INTRO )
223226 for file_name in file_names :
224227 try :
225228 sort_attempt = SortImports (file_name , ** arguments )
@@ -233,7 +236,7 @@ def main():
233236 if wrong_sorted_files :
234237 exit (1 )
235238
236- if num_skipped :
239+ if num_skipped and not arguments . get ( 'quiet' , False ) :
237240 print ("Skipped {0} files" .format (num_skipped ))
238241
239242if __name__ == "__main__" :
0 commit comments