human
I'd like to write a program that uses yfinance in c# as a console application, can you write a sample of this code where we get the Ticker MSFT and get the all of the options data?
gpt
Here's a sample program in C# that uses the `yfinance` library to retrieve options data for the stock with ticker symbol "MSFT":

```csharp
using System;
using yfinance;

namespace StockOptions
{
    class Program
    {
        static void Main(string[] args)
        {
            var stock = Stock.Get("MSFT");
            var options = stock.Options;

            Console.WriteLine("Options for stock with ticker symbol MSFT:");
            Console.WriteLine("------------------------------------------------");

            foreach (var option in options)
            {
                Console.WriteLine("Option symbol: " + option.Symbol);
                Console.WriteLine("Expiration date: " + option.Expiration);
                Console.WriteLine("Strike price: " + option.Strike);
                Console.WriteLine("Option type: " + option.Type);
                Console.WriteLine("Last price: " + option.LastPrice);
                Console.WriteLine("------------------------------------------------");
            }

            Console.ReadLine();
        }
    }
}

```

Before utilizing the `yfinance` library in your project, it must first be installed. This can be done through the `dotnet` Command Line Interface (CLI) by executing `dotnet add package yfinance`.
human
Thanks! Can you modify it so that it lets me enter any ticker I want?
gpt
Here's a modified version of the program that allows you to specify the stock ticker symbol as a command line argument in c sharp: 
```csharp
using System;
using yfinance;

namespace StockOptions
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("Usage: StockOptions [TICKER SYMBOL]");
                return;
            }

            var ticker = args[0];
            var stock = Stock.Get(ticker);
            var options = stock.Options;

            Console.WriteLine("Options for stock with ticker symbol " + ticker + ":");
            Console.WriteLine("------------------------------------------------");

            foreach (var option in options)
            {
                Console.WriteLine("Option symbol: " + option.Symbol);
                Console.WriteLine("Expiration date: " + option.Expiration);
                Console.WriteLine("Strike price: " + option.Strike);
                Console.WriteLine("Option type: " + option.Type);
                Console.WriteLine("Last price: " + option.LastPrice);
                Console.WriteLine("------------------------------------------------");
            }

            Console.ReadLine();
        }
    }
}
```
You can run the program by specifying the stock ticker symbol as a command line argument, like this: StockOptions 'MSFT'