2016-07-21 Fred Gleason <fredg@paravelsystems.com>

* Added a 'new' command to rdclilogedit(1).
This commit is contained in:
Fred Gleason
2016-07-21 17:26:11 -04:00
parent fb5010fa98
commit 93538cc483
6 changed files with 88 additions and 14 deletions

View File

@@ -80,6 +80,21 @@ void MainObject::DispatchCommand(QString cmd)
processed=true;
}
if(verb=="new") {
if(overwrite) {
if(cmds.size()==2) {
New(cmds[1]);
}
else {
fprintf(stderr,"new: invalid command arguments\n");
}
}
else {
OverwriteError("new");
}
processed=true;
}
//
// These need a log loaded
//