summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2013-11-30 20:32:55 -0500
committerTimothy Crosley <timothy.crosley@gmail.com>2013-11-30 20:32:55 -0500
commitec9ea8d4cfe0494eea4a419805ee3ed03784cc9e (patch)
treed04a540ee9f78e70f72fedfcd41e66bcdc01b61e /scripts
parentf4380a4acfb4eb066adfe7e10deafed791673755 (diff)
downloadisort-ec9ea8d4cfe0494eea4a419805ee3ed03784cc9e.tar.gz
Add -sl, force_single_line option to command line tool
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/isort2
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',