@@ -93,6 +93,8 @@ public Command Add
9393 Option < bool > continueOpt = new Option < bool > ( "--continue" , "Continue adding files if an error occurs" ) ;
9494 continueOpt . AddAlias ( "-c" ) ;
9595
96+ Option < bool > forceOpt = new Option < bool > ( "--force" , "Add files even if the bundle is signed" ) ;
97+
9698 Command command = new Command ( "add" , "Create new bundle or update an existing one" )
9799 {
98100 BundlePath ,
@@ -102,11 +104,11 @@ public Command Add
102104 continueOpt ,
103105 } ;
104106
105- command . SetHandler ( ( bundlePath , files , replace , recursive , continueOnError ) =>
107+ command . SetHandler ( ( bundlePath , files , replace , recursive , continueOnError , force ) =>
106108 {
107109 InitializeBundle ( bundlePath ) ;
108- Utilities . RunInStatusContext ( "[yellow]Preparing[/]" , ctx => RunAdd ( ctx , files , replace , recursive , continueOnError ) ) ;
109- } , BundlePath , filesArg , replaceOpt , recursiveOpt , continueOpt ) ;
110+ Utilities . RunInStatusContext ( "[yellow]Preparing[/]" , ctx => RunAdd ( ctx , files , replace , recursive , continueOnError , force ) ) ;
111+ } , BundlePath , filesArg , replaceOpt , recursiveOpt , continueOpt , forceOpt ) ;
110112
111113 return command ;
112114 }
0 commit comments