diff options
author | David McMackins II <contact@mcmackins.org> | 2015-10-15 06:48:09 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2015-10-15 06:48:09 -0500 |
commit | c2a24510618fd6101b18f64f56759a3e9e398395 (patch) | |
tree | dcfdfde5d70a4d91af33a612d88ab0743c005d8a | |
parent | da5e792d5fe4ae0792e967ac49caf4cdff9b77cf (diff) |
Fix currency amount argument to be a float
-rw-r--r-- | cfetch/__init__.py | 2 | ||||
-rwxr-xr-x | coinfetch | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cfetch/__init__.py b/cfetch/__init__.py index ab92092..0fad5a4 100644 --- a/cfetch/__init__.py +++ b/cfetch/__init__.py @@ -20,7 +20,7 @@ from os import listdir from os.path import basename, dirname, exists, expanduser, isdir, join, realpath from requests import get -__version__ = '5.0.0' +__version__ = '5.0.1' ## A cryptocurrency exchange rate ticker. class Ticker(): @@ -58,7 +58,7 @@ cli.add_argument('-v', '--version', action=VersionAction, help='show version information and exit', nargs=0) cli.add_argument('amount', default=1, help='amount of the original currency', - nargs='?', type=int) + nargs='?', type=float) cli.add_argument('src', help='currency from which to convert') cli.add_argument('dest', help='currency to which to convert') |