summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-20 18:48:53 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-20 18:48:53 -0400
commit108d3e5da6ac0bdf46579783f87d5a4b1f348b1c (patch)
treeca040d6a000f1276d3450f60b12d890ea40b1d03 /cmd2/argparse_custom.py
parentd0203602b79902df183d007b777234011b68efa9 (diff)
downloadcmd2-git-108d3e5da6ac0bdf46579783f87d5a4b1f348b1c.tar.gz
Added constants for some hardcoded strings
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'