From 42e0f7c94e58d98632e5d9169b87803ffc2021b1 Mon Sep 17 00:00:00 2001
From: Mike Williams <mike@mikebwilliams.com>
Date: Wed, 15 Nov 2023 12:21:30 -0500
Subject: [PATCH] kicad-cli: wxS fix and doc string change

---
 eeschema/eeschema_jobs_handler.cpp | 2 +-
 kicad/cli/command_sch_export_bom.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/eeschema/eeschema_jobs_handler.cpp b/eeschema/eeschema_jobs_handler.cpp
index 601509b5e3..242d47f667 100644
--- a/eeschema/eeschema_jobs_handler.cpp
+++ b/eeschema/eeschema_jobs_handler.cpp
@@ -451,7 +451,7 @@ int EESCHEMA_JOBS_HANDLER::JobExportBom( JOB* aJob )
         {
             // Handle wildcard. We allow the wildcard anywhere in the list, but it needs to respect
             // fields that come before and after the wildcard.
-            if( fieldName == _( "*" ) )
+            if( fieldName == wxS( "*" ) )
             {
                 for( const BOM_FIELD& modelField : dataModel.GetFieldsOrdered() )
                 {
diff --git a/kicad/cli/command_sch_export_bom.h b/kicad/cli/command_sch_export_bom.h
index 63f9d2baf4..d2afd1102f 100644
--- a/kicad/cli/command_sch_export_bom.h
+++ b/kicad/cli/command_sch_export_bom.h
@@ -53,7 +53,8 @@ namespace CLI
 
 //Options for controlling the fields and the grouping
 #define ARG_FIELDS "--fields"
-#define ARG_FIELDS_DESC "An ordered list of fields to export. Supports * and ${} substitutions."
+#define ARG_FIELDS_DESC                                                                            \
+    "An ordered list of fields to export. See documentation for special substitutions."
 
 #define ARG_LABELS "--labels"
 #define ARG_LABELS_DESC "An ordered list of labels to apply the exported fields."