def getUsage(self, width=None): t = BasedirOptions.getUsage(self, width) + "\n" twistd_options = str(MyTwistdConfig()).partition("\n")[2].partition("\n\n")[0] t += twistd_options.replace("Options:", "twistd-options:", 1) t += """ Note that if any twistd-options are used, NODEDIR must be specified explicitly (not by default or using -C/--basedir or -d/--node-directory), and followed by the twistd-options. """ return t
def getUsage(self, width=None): t = BasedirOptions.getUsage(self, width) + "\n" twistd_options = str(MyTwistdConfig()).partition("\n")[2].partition("\n\n")[0] t += twistd_options.replace("Options:", "twistd-options:", 1) t += """ Note that if any twistd-options are used, NODEDIR must be specified explicitly (not by default or using -C/--basedir or -d/--node-directory), and followed by the twistd-options. """ return t
def getUsage(self, width=None): t = BasedirOptions.getUsage(self, width) t += ( "The crawler data is now stored as JSON to avoid" " potential security issues with pickle files.\n\nIf" " you are confident the state files in the 'storage/'" " subdirectory of your node are trustworthy, run this" " command to upgrade them to JSON.\n\nThe files are:" " lease_checker.history, lease_checker.state, and" " bucket_counter.state" ) return t