Added new '--orphaned-*' command line switches.

This commit is contained in:
Patrick Linstruth
2019-06-02 10:23:46 -07:00
parent ec367160a8
commit bbbea94710
5 changed files with 121 additions and 27 deletions

View File

@@ -53,6 +53,12 @@ MainObject::MainObject(QObject *parent)
db_relink_audio="";
db_relink_audio_move=false;
db_check_all=true;
db_check_orphaned_audio=false;
db_check_orphaned_carts=false;
db_check_orphaned_cuts=false;
db_check_orphaned_tracks=false;
//
// Check that we're 'root'
//
@@ -205,6 +211,26 @@ MainObject::MainObject(QObject *parent)
db_rehash=cmd->value(i);
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--orphaned-audio") {
db_check_all=false;
db_check_orphaned_audio=true;
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--orphaned-carts") {
db_check_all=false;
db_check_orphaned_carts=true;
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--orphaned-cuts") {
db_check_all=false;
db_check_orphaned_cuts=true;
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--orphaned-tracks") {
db_check_all=false;
db_check_orphaned_tracks=true;
cmd->setProcessed(i,true);
}
if(!cmd->processed(i)) {
fprintf(stderr,"rddbmgr: unrecognized option \"%s\"\n",