2022-12-21 Fred Gleason <fredg@paravelsystems.com>

* Added a test for duplicate log line IDs to rddbmgr(8).
	* Added a '--check-log-line-ids' switch to rddbmgr(8).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-12-21 12:32:10 -05:00
parent 677f856fbe
commit 61b9a08f2a
4 changed files with 88 additions and 1 deletions

View File

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