Description: Fix svgicons2svgfont CLI for node-commander >= 7
 node-commander 14 no longer exports a Command instance from
 require('commander'); it exports a namespace object, so program.version
 crashed with "TypeError: program.version is not a function". Destructure
 the exported program instance instead. Also drop option flags rejected by
 commander 14: multi-character short flags (-st, -we) and the duplicate
 short flag -a on --prependUnicode (already used by --ascent).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed

--- node-webfont-11.4.0+dfsg2+~cs35.7.26.orig/svgicons2svgfont/bin/svgicons2svgfont.js
+++ node-webfont-11.4.0+dfsg2+~cs35.7.26/svgicons2svgfont/bin/svgicons2svgfont.js
@@ -3,7 +3,7 @@
 
 'use strict';
 
-const program = require('commander');
+const { program } = require('commander');
 const fs = require('fs');
 const glob = require('glob');
 
@@ -17,8 +17,8 @@ program
   .option('-o, --output [/dev/stdout]', 'file to write output to')
   .option('-f, --fontname [value]', 'the font family name you want [iconfont]')
   .option('-i, --fontId [value]', 'the font id you want [fontname]')
-  .option('-st, --style [value]', 'the font style you want')
-  .option('-we, --weight [value]', 'the font weight you want')
+  .option('--style [value]', 'the font style you want')
+  .option('--weight [value]', 'the font weight you want')
   .option(
     '-w, --fixedWidth',
     'creates a monospace font of the width of the largest input icon'
@@ -61,7 +61,7 @@ program
     parseInt
   )
   .option(
-    '-a, --prependUnicode',
+    '--prependUnicode',
     'prefix files with their automatically' + ' allocated unicode code point',
     parseInt
   )

