def add_options(self):
        """ Add program options.
        """
        super(RtorrentSweep, self).add_options()

        # basic options
        self.add_bool_option("-n", "--dry-run",
            help="do not remove anything, just tell what would happen")
        self.add_value_option("-p", "--path", "PATH",
            help="path into the filesystem to sweep (else the default download location)")
        self.add_value_option("-r", "--rules", "RULESET [-r ...]",
            action="append", default=[],
            help="name the ruleset(s) to use, instead of the default ones")
def add_options ( self ) : super ( RtorrentSweep , self ) . add_options ( ) self . add_bool_option ( "-n" , "--dry-run" , help = "do not remove anything, just tell what would happen" ) self . add_value_option ( "-p" , "--path" , "PATH" , help = "path into the filesystem to sweep (else the default download location)" ) self . add_value_option ( "-r" , "--rules" , "RULESET [-r ...]" , action = "append" , default = [ ] , help = "name the ruleset(s) to use, instead of the default ones" )
Add program options.