1178825Sdfr/* 2233294Sstas * Copyright (c) 2005 Kungliga Tekniska H��gskolan 3178825Sdfr * (Royal Institute of Technology, Stockholm, Sweden). 4178825Sdfr * All rights reserved. 5178825Sdfr * 6178825Sdfr * Redistribution and use in source and binary forms, with or without 7178825Sdfr * modification, are permitted provided that the following conditions 8178825Sdfr * are met: 9178825Sdfr * 10178825Sdfr * 1. Redistributions of source code must retain the above copyright 11178825Sdfr * notice, this list of conditions and the following disclaimer. 12178825Sdfr * 13178825Sdfr * 2. Redistributions in binary form must reproduce the above copyright 14178825Sdfr * notice, this list of conditions and the following disclaimer in the 15178825Sdfr * documentation and/or other materials provided with the distribution. 16178825Sdfr * 17178825Sdfr * 3. Neither the name of the Institute nor the names of its contributors 18178825Sdfr * may be used to endorse or promote products derived from this software 19178825Sdfr * without specific prior written permission. 20178825Sdfr * 21178825Sdfr * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22178825Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23178825Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24178825Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25178825Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26178825Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27178825Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28178825Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29178825Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30178825Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31178825Sdfr * SUCH DAMAGE. 32178825Sdfr */ 33233294Sstas/* $Id$ */ 34178825Sdfr 35178825Sdfrcommand = { 36178825Sdfr name = "dump" 37178825Sdfr option = { 38178825Sdfr long = "config-file" 39178825Sdfr short = "c" 40178825Sdfr type = "string" 41178825Sdfr help = "configuration file" 42178825Sdfr argument = "file" 43178825Sdfr } 44178825Sdfr option = { 45178825Sdfr long = "realm" 46178825Sdfr short = "r" 47178825Sdfr type = "string" 48178825Sdfr help = "realm" 49178825Sdfr } 50178825Sdfr function = "iprop_dump" 51178825Sdfr help = "Prints the iprop transaction log in text." 52178825Sdfr max_args = "0" 53178825Sdfr} 54178825Sdfrcommand = { 55178825Sdfr name = "truncate" 56178825Sdfr option = { 57178825Sdfr long = "config-file" 58178825Sdfr short = "c" 59178825Sdfr type = "string" 60178825Sdfr help = "configuration file" 61178825Sdfr argument = "file" 62178825Sdfr } 63178825Sdfr option = { 64178825Sdfr long = "realm" 65178825Sdfr short = "r" 66178825Sdfr type = "string" 67178825Sdfr help = "realm" 68178825Sdfr } 69178825Sdfr function = "iprop_truncate" 70178825Sdfr help = "Truncate the log, preserve the version number." 71178825Sdfr max_args = "0" 72178825Sdfr} 73178825Sdfrcommand = { 74178825Sdfr name = "replay" 75178825Sdfr option = { 76178825Sdfr long = "start-version" 77178825Sdfr type = "integer" 78178825Sdfr help = "start replay with this version" 79178825Sdfr argument = "version-number" 80178825Sdfr default = "-1" 81178825Sdfr } 82178825Sdfr option = { 83178825Sdfr long = "end-version" 84178825Sdfr type = "integer" 85178825Sdfr help = "end replay with this version" 86178825Sdfr argument = "version-number" 87178825Sdfr default = "-1" 88178825Sdfr } 89178825Sdfr option = { 90178825Sdfr long = "config-file" 91178825Sdfr short = "c" 92178825Sdfr type = "string" 93178825Sdfr help = "configuration file" 94178825Sdfr argument = "file" 95178825Sdfr } 96178825Sdfr option = { 97178825Sdfr long = "realm" 98178825Sdfr short = "r" 99178825Sdfr type = "string" 100178825Sdfr help = "realm" 101178825Sdfr } 102178825Sdfr function = "iprop_replay" 103178825Sdfr help = "Replay the log on the database." 104178825Sdfr max_args = "0" 105178825Sdfr} 106178825Sdfrcommand = { 107178825Sdfr name = "last-version" 108178825Sdfr option = { 109178825Sdfr long = "config-file" 110178825Sdfr short = "c" 111178825Sdfr type = "string" 112178825Sdfr help = "configuration file" 113178825Sdfr argument = "file" 114178825Sdfr } 115178825Sdfr option = { 116178825Sdfr long = "realm" 117178825Sdfr short = "r" 118178825Sdfr type = "string" 119178825Sdfr help = "realm" 120178825Sdfr } 121178825Sdfr function = "last_version" 122178825Sdfr help = "Print the last version of the log-file." 123178825Sdfr max_args = "0" 124178825Sdfr} 125178825Sdfrcommand = { 126178825Sdfr name = "help" 127178825Sdfr argument = "command" 128178825Sdfr max_args = "1" 129178825Sdfr function = "help" 130178825Sdfr} 131