diff --git a/README.md b/README.md index 14873021..cd5a13d3 100644 --- a/README.md +++ b/README.md @@ -413,16 +413,16 @@ You can list the supported targets, and their version using the `--platform` par List packages available for ESP32 targets: ```console -nanoff --listboards --platform esp32 +nanoff --listtargets --platform esp32 ``` List packages available for STM32 targets: ```console -nanoff --listboards --platform stm32 +nanoff --listtargets --platform stm32 ``` -If you use the `--listtargets` switch in conjunction with `--preview`, you'll get the list of packages that maybe used for experimental or major feature changes. +If you use the `--listtargets` switch in conjunction with `--preview`, you'll get the list of available firmware packages that are available with experimental or major feature changes. ## Clear cache location diff --git a/nanoFirmwareFlasher.Tool/Options.cs b/nanoFirmwareFlasher.Tool/Options.cs index a9ea5dfc..7ae44a9f 100644 --- a/nanoFirmwareFlasher.Tool/Options.cs +++ b/nanoFirmwareFlasher.Tool/Options.cs @@ -299,13 +299,6 @@ public class Options HelpText = "Skip execution of sanity check if the requested target fits the connected device. This is a best effort validation and it's NOT guaranted to be fail safe.")] public bool FitCheck { get; set; } - [Option( - "listboards", - Required = false, - Default = false, - HelpText = "List the available boards and versions available on CloudSmith.")] - public bool ListBoards { get; set; } - [Option( "listtargets", Required = false, diff --git a/nanoFirmwareFlasher.Tool/Program.cs b/nanoFirmwareFlasher.Tool/Program.cs index 00df6509..7b8c5f28 100644 --- a/nanoFirmwareFlasher.Tool/Program.cs +++ b/nanoFirmwareFlasher.Tool/Program.cs @@ -260,27 +260,9 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o) #region list targets - // First check if we are asked for the list of boards - if (o.ListTargets || - o.ListBoards) + // First check if we are asked for the list of available targets + if (o.ListTargets) { - if (o.ListBoards && _verbosityLevel > VerbosityLevel.Quiet) - { - // warn about deprecated option - Console.ForegroundColor = ConsoleColor.Yellow; - - Console.WriteLine(""); - Console.WriteLine(""); - Console.WriteLine("********************************** WARNING **********************************"); - Console.WriteLine("The --listboards option is deprecated and will be removed in a future version"); - Console.WriteLine("Please use --listtargets option instead"); - Console.WriteLine("*****************************************************************************"); - Console.WriteLine(""); - Console.WriteLine(""); - - Console.ForegroundColor = ConsoleColor.White; - } - // get list from REFERENCE targets var targets = FirmwarePackage.GetTargetList( false,