2021-11-24 Fred Gleason <fredg@paravelsystems.com>

* Added a '--check-strings' switch to rddbmgr(8).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-11-24 08:35:36 -05:00
parent 9231829495
commit eb2ec404a1
5 changed files with 143 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ MainObject::MainObject(QObject *parent)
db_check_orphaned_carts=false;
db_check_orphaned_cuts=false;
db_check_orphaned_tracks=false;
db_check_strings=false;
//
// Check that we're 'root'
@@ -230,6 +231,11 @@ MainObject::MainObject(QObject *parent)
db_check_orphaned_tracks=true;
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--check-strings") {
db_check_all=false;
db_check_strings=true;
cmd->setProcessed(i,true);
}
if(!cmd->processed(i)) {
fprintf(stderr,"rddbmgr: unrecognized option \"%s\"\n",