summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2015-10-15 06:48:09 -0500
committerDavid McMackins II <contact@mcmackins.org>2015-10-15 06:48:09 -0500
commitc2a24510618fd6101b18f64f56759a3e9e398395 (patch)
treedcfdfde5d70a4d91af33a612d88ab0743c005d8a
parentda5e792d5fe4ae0792e967ac49caf4cdff9b77cf (diff)
Fix currency amount argument to be a float
-rw-r--r--cfetch/__init__.py2
-rwxr-xr-xcoinfetch2
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():
diff --git a/coinfetch b/coinfetch
index 9c1c562..8126a30 100755
--- a/coinfetch
+++ b/coinfetch
@@ -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')