anshulxyz / exch

a command-line tool to see currency exchange rates
MIT License
20 stars 2 forks source link

Change default currency #4

Closed anshulxyz closed 7 years ago

anshulxyz commented 7 years ago

Currently the default are set like this:

@click.option('--base', '-b', default='USD', type=str, show_default=True,
              help='Currency you are converting from.')
@click.option('--target', '-t', default='INR', type=str, show_default=True,
              help='Currency you\'re converting to.')

Where defaults are set to USD and INR.

User should be able to change this to his preference.

anshulxyz commented 7 years ago

I am thinking of storing defaults values in a separate JSON file and then retrieve it. And to change the default value, I can write a function to edit the values in JSON.

anshulxyz commented 7 years ago

Supply the latest rates which are available at the time of installation.