diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2013-11-30 20:32:55 -0500 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2013-11-30 20:32:55 -0500 |
commit | ec9ea8d4cfe0494eea4a419805ee3ed03784cc9e (patch) | |
tree | d04a540ee9f78e70f72fedfcd41e66bcdc01b61e /scripts | |
parent | f4380a4acfb4eb066adfe7e10deafed791673755 (diff) | |
download | isort-ec9ea8d4cfe0494eea4a419805ee3ed03784cc9e.tar.gz |
Add -sl, force_single_line option to command line tool
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 8640d99d..2726b3f2 100755 --- a/scripts/isort +++ b/scripts/isort @@ -39,6 +39,8 @@ parser.add_argument('-d', '--stdout', help='Force resulting output to stdout, in parser.add_argument('-c', '--check-only', action='store_true', default=False, dest="check", help='Checks the file for unsorted imports and prints them to the command line without modifying ' 'the file.') +parser.add_argument('-sl', '--force_single_line_imports', dest='force_single_line', action='store_true', + help='Forces all from imports to appear on their own line') 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', |