当前位置: 首页>>代码示例>>Python>>正文


Python Commands.fullversion方法代码示例

本文整理汇总了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)
开发者ID:juliopi2020,项目名称:MinecraftClientTest,代码行数:9,代码来源:recompile.py

示例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)
开发者ID:435886030,项目名称:MineCraft_Warden,代码行数:9,代码来源:startserver.py

示例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)
开发者ID:CoreyCole,项目名称:gECON-mod,代码行数:30,代码来源:decompile.py

示例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)
开发者ID:TabishS,项目名称:AwakenDreams,代码行数:37,代码来源:decompile.py

示例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)
开发者ID:CircuitLord,项目名称:Minecraft-1.9-MCP,代码行数:9,代码来源:cleanup.py

示例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)
开发者ID:leijurv,项目名称:MineBot,代码行数:11,代码来源:startclient.py

示例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)
开发者ID:CatRabbit499,项目名称:MCTC,代码行数:12,代码来源:reobfuscate.py

示例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)
开发者ID:435886030,项目名称:MineCraft_Warden,代码行数:17,代码来源:reobfuscate.py

示例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)
开发者ID:CatRabbit499,项目名称:MCTC,代码行数:8,代码来源:updateids.py

示例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)
开发者ID:Faik-man,项目名称:movecraft,代码行数:7,代码来源:startclient.py

示例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)
开发者ID:CatRabbit499,项目名称:MCTC,代码行数:7,代码来源:startserver.py


注:本文中的commands.Commands.fullversion方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。