Skip to content

A free open source IT asset/license management system

Added —force no op when erreously passed via cli

snipe0ed01a7a830e
diff --git a/app/Console/Commands/SystemBackup.php b/app/Console/Commands/SystemBackup.php
index f859845222..ca2c9275c2 100644
--- a/app/Console/Commands/SystemBackup.php
+++ b/app/Console/Commands/SystemBackup.php
@@ -11,7 +11,11 @@ class SystemBackup extends Command
*
* @var string
*/
- protected $signature = 'snipeit:backup {--filename=}';
+ // --force is accepted for parity with other Laravel commands that require
+ // it (migrate, db:seed, etc.); it doesn't gate anything here but external
+ // automations were passing it and crashing on the "option does not exist"
+ // error.
+ protected $signature = 'snipeit:backup {--filename=} {--force}';
/**
* The console command description.