Skip to content

Commit 65180d1

Browse files
committed
main.py: group output control options at the top
1 parent 5021b64 commit 65180d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libmodernize/main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ def main(args=None):
3636
parser = optparse.OptionParser(usage=usage,
3737
version="modernize %s" % __version__)
3838
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.")
3945
parser.add_option("-d", "--doctests_only", action="store_true",
4046
help="Fix up doctests only.")
4147
parser.add_option("-f", "--fix", action="append", default=[],
@@ -44,14 +50,8 @@ def main(args=None):
4450
type="int", help="Run 2to3 concurrently.")
4551
parser.add_option("-x", "--nofix", action="append", default=[],
4652
help="Prevent a fixer from being run.")
47-
parser.add_option("-l", "--list-fixes", action="store_true",
48-
help="List available transformations.")
4953
parser.add_option("-p", "--print-function", action="store_true",
5054
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.")
5555
parser.add_option("-w", "--write", action="store_true",
5656
help="Write back modified files.")
5757
parser.add_option("-n", "--nobackups", action="store_true", default=False,

0 commit comments

Comments
 (0)