BlakeFL
BlakeFL
CC#
Created by BlakeFL on 6/28/2023 in #help
✅ System.CommandLine -> How to create a option without a parameter?
If I wanted to create an option that does not need anything passed into it how does that work with the latest version? I tried passing nothing to a nullable string option but that did not work. It seems like this might have worked with new Option() without type <t> before but that was removed in the newest version. Desired result: cmd input -> "tool servers -list" cmd response -> list of servers from api call or config file. servers is the subcommand and -list would be an option.
7 replies