本文整理汇总了Python中commands.Commands.fullversion方法的典型用法代码示例。如果您正苦于以下问题:Python Commands.fullversion方法的具体用法?Python Commands.fullversion怎么用?Python Commands.fullversion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类commands.Commands
的用法示例。
在下文中一共展示了Commands.fullversion方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version="MCP %s" % Commands.fullversion())
parser.add_option("--client", dest="only_client", action="store_true", help="only process client", default=False)
parser.add_option("--server", dest="only_server", action="store_true", help="only process server", default=False)
parser.add_option("-c", "--config", dest="config", help="additional configuration file")
options, _ = parser.parse_args()
recompile(options.config, options.only_client, options.only_server)
示例2: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
parser.add_option('-m', '--main', dest='mainclass', help='Main class to start', default='net.minecraft.server.MinecraftServer')
parser.add_option('-j', '--json', dest='json',action='store_true', help='Use the json file to setup parameters', default=False)
options, _ = parser.parse_args()
startserver(options.config, options.mainclass, options.json)
示例3: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('--client', dest='only_client', action='store_true', help='only process client', default=False)
parser.add_option('--server', dest='only_server', action='store_true', help='only process server', default=False)
parser.add_option('-j', '--jad', dest='force_jad', action='store_true',
help='force use of JAD even if Fernflower available', default=False)
parser.add_option('-s', '--csv', dest='force_csv', action='store_true',
help='force use of CSVs even if SRGs available', default=False)
parser.add_option('-r', '--norecompile', dest='no_recompile', action='store_true',
help='disable recompile after decompile', default=False)
parser.add_option('-d', '--nocomments', dest='no_comments', action='store_true', help='disable javadoc',
default=False)
parser.add_option('-a', '--noreformat', dest='no_reformat', action='store_true',
help='disable source reformatting', default=False)
parser.add_option('-n', '--norenamer', dest='no_renamer', action='store_true',
help='disable field and method renaming', default=False)
parser.add_option('-l', '--lvt', dest='keep_lvt', action='store_true', help='preserve local variable table',
default=False)
parser.add_option('-g', '--generics', dest='keep_generics', action='store_true',
help='preserve generics as well as local variables', default=False)
parser.add_option('-o', '--onlypatch', dest='only_patch', action='store_true', help='only patch source',
default=False)
parser.add_option('-p', dest='no_patch', action='store_true', help='Undocumented magic', default=False)
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
options, _ = parser.parse_args()
decompile(options.config, options.force_jad, options.force_csv, options.no_recompile, options.no_comments,
options.no_reformat, options.no_renamer, options.no_patch, options.only_patch, options.keep_lvt,
options.keep_generics, options.only_client, options.only_server)
示例4: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('--client', dest='only_client', action='store_true', help='only process client', default=False)
parser.add_option('--server', dest='only_server', action='store_true', help='only process server', default=False)
parser.add_option('-j', '--jad', dest='force_jad', action='store_true',
help='force use of JAD even if Fernflower available', default=False)
parser.add_option('--rg', dest='force_rg', action='store_true',
help='force use of RetroGuard even if SpecialSource available', default=False)
parser.add_option('-s', '--csv', dest='force_csv', action='store_true',
help='force use of CSVs even if SRGs available', default=False)
parser.add_option('-r', '--norecompile', dest='no_recompile', action='store_true',
help='disable recompile after decompile', default=False)
parser.add_option('-d', '--nocomments', dest='no_comments', action='store_true', help='disable javadoc',
default=False)
parser.add_option('-a', '--noreformat', dest='no_reformat', action='store_true',
help='disable source reformatting', default=False)
parser.add_option('-n', '--norenamer', dest='no_renamer', action='store_true',
help='disable field and method renaming', default=False)
parser.add_option('-l', '--kill_lvt', dest='keep_lvt', action='store_false', help='erase local variable table',
default=True)
parser.add_option('-g', '--kill_generics', dest='keep_generics', action='store_false',
help='Destroy generics', default=True)
parser.add_option('-o', '--onlypatch', dest='only_patch', action='store_true', help='only patch source',
default=False)
parser.add_option('-p', dest='no_patch', action='store_true', help='Undocumented magic', default=False)
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
parser.add_option('-w', '--workDir', dest='workdir', help='Change client lookup place (by default, ~/.minecraft)')
parser.add_option('--json', dest='json', help='Location of the json file for none standard installs')
parser.add_option('--nocopy', dest='nocopy', action='store_true', help='Do not try to copy assets from minecraft install', default=False)
options, _ = parser.parse_args()
decompile(options.config, options.force_jad, options.force_csv, options.no_recompile, options.no_comments,
options.no_reformat, options.no_renamer, options.no_patch, options.only_patch, options.keep_lvt,
options.keep_generics, options.only_client, options.only_server, options.force_rg, options.workdir, options.json, options.nocopy)
示例5: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('-f', '--force', action='store_true', dest='force', help='force cleanup', default=False)
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
parser.add_option('-d', '--distclean', action='store_true', dest='distclean', help='Remove worlds, libraries and jars', default=False)
options, _ = parser.parse_args()
cleanup(options.config, options.force, options.distclean)
示例6: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version="MCP %s" % Commands.fullversion())
parser.add_option("-c", "--config", dest="config", help="additional configuration file")
parser.add_option("-m", "--main", dest="mainclass", help="Main class to start", default="Start")
parser.add_option(
"-j", "--json", dest="json", action="store_true", help="Use the json file to setup parameters", default=False
)
options, _ = parser.parse_args()
startclient(options.config, options.mainclass, options.json)
示例7: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('-a', '--all', action='store_true', dest='reobf_all', help='output all classes', default=False)
parser.add_option('-n', '--nolvt', dest='keep_lvt', action='store_false', help='strip local variable table',
default=True)
parser.add_option('-g', '--generics', dest='keep_generics', action='store_true',
help='preserve generics as well as local variables', default=False)
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
options, _ = parser.parse_args()
reobfuscate(options.config, options.reobf_all, options.keep_lvt, options.keep_generics)
示例8: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('--client', dest='only_client', action='store_true', help='only process client', default=False)
parser.add_option('--server', dest='only_server', action='store_true', help='only process server', default=False)
parser.add_option('-a', '--all', action='store_true', dest='reobf_all', help='output all classes', default=False)
parser.add_option('-n', '--nolvt', dest='keep_lvt', action='store_false', help='strip local variable table',
default=True)
parser.add_option('-g', '--generics', dest='keep_generics', action='store_true',
help='preserve generics as well as local variables', default=False)
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
parser.add_option('--srgnames', dest='srg_names', action='store_true', help='Obfuscate to MCP unique names', default=False)
parser.add_option('--rg', dest='force_rg', action='store_true', help='force use of RetroGuard even if SpecialSource available', default=False)
options, _ = parser.parse_args()
reobfuscate(options.config, options.reobf_all, options.keep_lvt, options.keep_generics, options.only_client,
options.only_server, options.srg_names, options.force_rg)
示例9: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('-f', '--force', action='store_true', dest='force', help='force update', default=False)
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
options, _ = parser.parse_args()
updateids(options.config, options.force)
示例10: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version="MCP %s" % Commands.fullversion())
parser.add_option("-c", "--config", dest="config", help="additional configuration file")
options, _ = parser.parse_args()
startclient(options.config)
示例11: main
# 需要导入模块: from commands import Commands [as 别名]
# 或者: from commands.Commands import fullversion [as 别名]
def main():
parser = OptionParser(version='MCP %s' % Commands.fullversion())
parser.add_option('-c', '--config', dest='config', help='additional configuration file')
options, _ = parser.parse_args()
startserver(options.config)