summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-07-21 00:21:28 -0400
committerGitHub <noreply@github.com>2019-07-21 00:21:28 -0400
commit73d1c34ae199415051a6209c726b099660944499 (patch)
tree31dcb1fd807e255a388e56b80dcf0279fd1899b0 /cmd2/argparse_custom.py
parent578593f8a9011ad71d78cd30f231c79af570987e (diff)
parent4b91f6355795d7bd23ff46882fd7181a3a11a419 (diff)
downloadcmd2-git-73d1c34ae199415051a6209c726b099660944499.tar.gz
Merge pull request #737 from python-cmd2/renames
Changes made while preparing for PyOhio presentation
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 090abde1..668f41d6 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -154,13 +154,13 @@ from typing import Any, Callable, Iterable, List, Optional, Tuple, Union
from .ansi import ansi_aware_write, style_error
+# Used in nargs ranges to signify there is no maximum
+INFINITY = float('inf')
+
############################################################################################################
# The following are names of custom argparse argument attributes added by cmd2
############################################################################################################
-# Used in nargs ranges to signify there is no maximum
-INFINITY = float('inf')
-
# A tuple specifying nargs as a range (min, max)
ATTR_NARGS_RANGE = 'nargs_range'