summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2013-09-05 21:51:11 -0400
committerTimothy Crosley <timothy.crosley@gmail.com>2013-09-05 21:51:11 -0400
commit56a3c42ae2d186b50b58cb2dfe28f0785355d7a7 (patch)
tree0096b8d710fb07f5ef7d24ff4808108913f6377a /scripts
parent35f5e35801eb49b850d53fb43628c52a2c589b50 (diff)
downloadisort-56a3c42ae2d186b50b58cb2dfe28f0785355d7a7.tar.gz
Fix issue #9, implement support for multiple wrap modes and length based sorting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/isort7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/isort b/scripts/isort
index 8d953f87..8a1eb1be 100755
--- a/scripts/isort
+++ b/scripts/isort
@@ -22,7 +22,12 @@ parser.add_argument("-o", "--thirdparty", dest="known_third_party", action="appe
help="Force sortImports to recognize a module as being part of a third party library.")
parser.add_argument("-p", "--project", dest="known_first_party", action="append",
help="Force sortImports to recognize a module as being part of the current python project.")
-
+parser.add_argument("-m", "--multi_line", help="Multi line output (0-grid, 1-vertical, 2-hanging, 3-vert-hanging).",
+ dest="multi_line_output", type=int, choices=[0, 1, 2, 3])
+parser.add_argument("-i", "--indent", help="String to place for indents defaults to ' ' (4 spaces).",
+ dest="indent", type=str)
+parser.add_argument("-ls", "--length_sort", help="Sort imports by their string length.",
+ dest="length_sort", action="store_true", default=False)
parser.add_argument('--version', action='version', version='isort {0}'.format(__version__))
arguments = dict((key, value) for (key, value) in iteritems(vars(parser.parse_args())) if value)