diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2013-10-06 21:40:23 -0400 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2013-10-06 21:40:23 -0400 |
commit | 6968e125a100ed21b151d2238183a1edd5fb4964 (patch) | |
tree | 7e1b8121192dd731d6385e53550239c9a078d802 /scripts | |
parent | dd65b4c0cc62cb9ace4ca0661527666c0e096339 (diff) | |
download | isort-6968e125a100ed21b151d2238183a1edd5fb4964.tar.gz |
Add support for quickly (bulk) adding and removing imports w/ tests and kate plugin improvments
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/isort | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/isort b/scripts/isort index 5ddabf23..21aac59e 100755 --- a/scripts/isort +++ b/scripts/isort @@ -26,6 +26,10 @@ parser.add_argument("-m", "--multi_line", help="Multi line output (0-grid, 1-ver 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("-a", "--add_import", dest="add_imports", action="append", + help="Adds the specified import line to all files, automatically determining correct placement.") +parser.add_argument("-r", "--remove_import", dest="remove_imports", action="append", + help="Removes the specified import from all files.") 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__)) |