diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2014-01-04 12:24:01 -0500 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2014-01-04 12:24:01 -0500 |
commit | be414d8208c5e5e42e29f622c377244b4a628b6c (patch) | |
tree | edab8f7e6374387a483e89c52c42ff4dc1adbc1c /scripts | |
parent | 59feb7351190e406f80807a0ca349bda1e7ec5be (diff) | |
download | isort-be414d8208c5e5e42e29f622c377244b4a628b6c.tar.gz |
Add balanced import command line argument
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/isort | 2 |
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) |