Ejemplo n.º 1
0
    def addOptions(self):
        info=OptionGroup(self.parser,
                         "Information",
                         "Information about the case")
        self.parser.add_option_group(info)
        
        info.add_option("--short-description",
                        action="store_true",
                        dest="short",
                        default=False,
                        help="Print a short description of the case and exit")

        info.add_option("--arguments",
                        action="store_true",
                        dest="args",
                        default=False,
                        help="Describes the additional arguments")

        info.add_option("--help-text",
                        action="store_true",
                        dest="help",
                        default=False,
                        help="Prints the help text in the description file")

        info.add_option("--boundaries",
                        action="store_true",
                        dest="bounds",
                        default=False,
                        help="Describes the boundaries")

        info.add_option("--long-description",
                        action="store_true",
                        dest="long",
                        default=False,
                        help="Print a long description of the case and exit")

        CommonCaseBuilder.addOptions(self)
        
        how=OptionGroup(self.parser,
                         "How",
                         "How the case should be built")
        self.parser.add_option_group(how)
        
        how.add_option("--force",
                        action="store_true",
                        dest="force",
                        default=False,
                        help="Remove the case-directory if it exists")
Ejemplo n.º 2
0
 def addOptions(self):
     CommonCaseBuilder.addOptions(self)