summaryrefslogtreecommitdiff
path: root/cliff/_argparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliff/_argparse.py')
-rw-r--r--cliff/_argparse.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cliff/_argparse.py b/cliff/_argparse.py
index c03d709..cb5e4c5 100644
--- a/cliff/_argparse.py
+++ b/cliff/_argparse.py
@@ -12,9 +12,11 @@
"""Overrides of standard argparse behavior."""
-import argparse
+import argparse as orig_argparse
import warnings
+from autopage import argparse
+
class _ArgumentContainerMixIn(object):
@@ -75,12 +77,12 @@ def _handle_conflict_ignore(container, option_string_actions,
)
-class _ArgumentGroup(_ArgumentContainerMixIn, argparse._ArgumentGroup):
+class _ArgumentGroup(_ArgumentContainerMixIn, orig_argparse._ArgumentGroup):
pass
class _MutuallyExclusiveGroup(_ArgumentContainerMixIn,
- argparse._MutuallyExclusiveGroup):
+ orig_argparse._MutuallyExclusiveGroup):
pass