#!/usr/bin/env python

from Bank import Account
import argparse
import random

def main():
    
    parser = argparse.ArgumentParser(description="Creating a bank account.")
    parser.add_argument('balance', type=int, help='Enter the account balance')

    # adding an option to output the result in a file
    parser.add_argument(
        "-o", "--output", help="output result to a file", action="store_true")

    # Grabbing the argument from the command line
    args = parser.parse_args()

    account = Account(random.randint(100,1000), args.balance, 0.7)

    print(account.toString())

main()