@@ -36,6 +36,12 @@ def main(args=None):
36
36
parser = optparse .OptionParser (usage = usage ,
37
37
version = "modernize %s" % __version__ )
38
38
parser .formatter .format_usage = format_usage
39
+ parser .add_option ("-v" , "--verbose" , action = "store_true" ,
40
+ help = "Show more verbose logging." )
41
+ parser .add_option ("--no-diffs" , action = "store_true" ,
42
+ help = "Don't show diffs of the refactoring." )
43
+ parser .add_option ("-l" , "--list-fixes" , action = "store_true" ,
44
+ help = "List available transformations." )
39
45
parser .add_option ("-d" , "--doctests_only" , action = "store_true" ,
40
46
help = "Fix up doctests only." )
41
47
parser .add_option ("-f" , "--fix" , action = "append" , default = [],
@@ -44,14 +50,8 @@ def main(args=None):
44
50
type = "int" , help = "Run 2to3 concurrently." )
45
51
parser .add_option ("-x" , "--nofix" , action = "append" , default = [],
46
52
help = "Prevent a fixer from being run." )
47
- parser .add_option ("-l" , "--list-fixes" , action = "store_true" ,
48
- help = "List available transformations." )
49
53
parser .add_option ("-p" , "--print-function" , action = "store_true" ,
50
54
help = "Modify the grammar so that print() is a function." )
51
- parser .add_option ("-v" , "--verbose" , action = "store_true" ,
52
- help = "Show more verbose logging." )
53
- parser .add_option ("--no-diffs" , action = "store_true" ,
54
- help = "Don't show diffs of the refactoring." )
55
55
parser .add_option ("-w" , "--write" , action = "store_true" ,
56
56
help = "Write back modified files." )
57
57
parser .add_option ("-n" , "--nobackups" , action = "store_true" , default = False ,
0 commit comments