mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 08:31:16 +02:00
2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'new' command to rdclilogedit(1).
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user