From c2a24510618fd6101b18f64f56759a3e9e398395 Mon Sep 17 00:00:00 2001 From: David McMackins II Date: Thu, 15 Oct 2015 06:48:09 -0500 Subject: Fix currency amount argument to be a float --- cfetch/__init__.py | 2 +- 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(): 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') -- cgit v1.2.3