summaryrefslogtreecommitdiff
path: root/click/parser.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2018-09-24 08:21:11 -0700
committerDavid Lord <davidism@gmail.com>2018-09-24 08:21:11 -0700
commit5585856f5a7075656f94ffa2af8757cbd1b4fcca (patch)
treed4e393b3263de84a7ce5cce81913d7993aeee862 /click/parser.py
parenta589835a5b656eec4bace076ac7e947662c1cc68 (diff)
downloadclick-meta.tar.gz
update metadatameta
test on 3.7 fix collections deprecation warning
Diffstat (limited to 'click/parser.py')
-rw-r--r--click/parser.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/click/parser.py b/click/parser.py
index 5e8c213..1c3ae9c 100644
--- a/click/parser.py
+++ b/click/parser.py
@@ -1,20 +1,21 @@
# -*- coding: utf-8 -*-
"""
- click.parser
- ~~~~~~~~~~~~
+click.parser
+~~~~~~~~~~~~
- This module started out as largely a copy paste from the stdlib's
- optparse module with the features removed that we do not need from
- optparse because we implement them in Click on a higher level (for
- instance type handling, help formatting and a lot more).
+This module started out as largely a copy paste from the stdlib's
+optparse module with the features removed that we do not need from
+optparse because we implement them in Click on a higher level (for
+instance type handling, help formatting and a lot more).
- The plan is to remove more and more from here over time.
+The plan is to remove more and more from here over time.
- The reason this is a different module and not optparse from the stdlib
- is that there are differences in 2.x and 3.x about the error messages
- generated and optparse in the stdlib uses gettext for no good reason
- and might cause us issues.
+The reason this is a different module and not optparse from the stdlib
+is that there are differences in 2.x and 3.x about the error messages
+generated and optparse in the stdlib uses gettext for no good reason
+and might cause us issues.
"""
+
import re
from collections import deque
from .exceptions import UsageError, NoSuchOption, BadOptionUsage, \