summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2014-01-04 12:24:01 -0500
committerTimothy Crosley <timothy.crosley@gmail.com>2014-01-04 12:24:01 -0500
commitbe414d8208c5e5e42e29f622c377244b4a628b6c (patch)
treeedab8f7e6374387a483e89c52c42ff4dc1adbc1c /scripts
parent59feb7351190e406f80807a0ca349bda1e7ec5be (diff)
downloadisort-be414d8208c5e5e42e29f622c377244b4a628b6c.tar.gz
Add balanced import command line argument
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/isort2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/isort b/scripts/isort
index 5ff2accc..503ee6e0 100755
--- a/scripts/isort
+++ b/scripts/isort
@@ -46,6 +46,8 @@ parser.add_argument('-sd', '--section-default', dest='default_section',
help='Sets the default section for imports (by default FIRSTPARTY) options: ' + str(SECTION_NAMES))
parser.add_argument('-df', '--diff', dest='show_diff', default=False, action='store_true',
help="Prints a diff of all the changes isort would make to a file, instead of changing it in place")
+parser.add_argument('-e', '--balanced', dest='balanced_wrapping', action='store_true',
+ help='Balances wrapping to produce the most consistent line length possible')
parser.add_argument('-v', '--version', action='version', version='isort {0}'.format(__version__))
arguments = dict((key, value) for (key, value) in itemsview(vars(parser.parse_args())) if value)