diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2014-08-04 13:34:13 -0400 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2014-08-04 13:34:13 -0400 |
commit | 1d45e2cc8bc3d87f69947d503d4ad4f6f5d2b06a (patch) | |
tree | 35bd278c6a9dd6e32bf52b6d95f976cd8768f5eb | |
parent | 46be4177ee1eceb2b73dc9f071b64059f857189a (diff) | |
download | isort-feature/fix-issue-170.tar.gz |
Add support for manually overriding the settings path from the command linefeature/fix-issue-170
-rwxr-xr-x | isort/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/isort/main.py b/isort/main.py index e00a0105..fb065eba 100755 --- a/isort/main.py +++ b/isort/main.py @@ -98,6 +98,8 @@ def main(): parser.add_argument('-v', '--version', action='version', version='isort {0}'.format(__version__)) parser.add_argument('-vb', '--verbose', action='store_true', dest="verbose", help='Shows verbose output, such as when files are skipped or when a check is successful.') + parser.add_argument('-sp', '--settings-path', dest="settings_path", + help='Explicitly set the settings path instead of auto determining based on file location.') arguments = dict((key, value) for (key, value) in itemsview(vars(parser.parse_args())) if value) file_names = arguments.pop('files', []) |