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


Python Sys.print方法代码示例

本文整理汇总了Python中psr.sys.Sys.print方法的典型用法代码示例。如果您正苦于以下问题:Python Sys.print方法的具体用法?Python Sys.print怎么用?Python Sys.print使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在psr.sys.Sys的用法示例。


在下文中一共展示了Sys.print方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: onend_cmd

# 需要导入模块: from psr.sys import Sys [as 别名]
# 或者: from psr.sys.Sys import print [as 别名]
 def onend_cmd(self, title, stime, done, outputfile):
     """"""
     s = Const.LINE_SEP_CHAR*Const.LINE_SEP_LEN
     Sys.print(s, Sys.CLZ_HEAD_LINE)
     Sys.wlog([(s, Const.CLZ_HEAD_SEP)])
     Sys.pstep(title, stime, done, True)
     Sys.print(s, Sys.CLZ_HEAD_LINE)
     Sys.wlog([(s, Const.CLZ_HEAD_SEP)])
     if done and outputfile is not None:
         Sys.cli_emit_progress(100)
         Sys.print(' '*5+Sys.realpath(outputfile), Sys.Clz.fgB1, False)
         Sys.print(' ('+Sys.getFileSize(outputfile)+')', Sys.Clz.fgB3)
         bdata = [(' '*5+Sys.realpath(outputfile), 'io'),(' ('+Sys.getFileSize(outputfile)+')','func')]
         Sys.wlog(bdata)
         Sys.wlog(Sys.dprint())
开发者ID:necrose99,项目名称:Kirmah,代码行数:17,代码来源:cliapp.py

示例2: onCommandKey

# 需要导入模块: from psr.sys import Sys [as 别名]
# 或者: from psr.sys.Sys import print [as 别名]
    def onCommandKey(self):
        """"""
        if int(self.o.length) >= 128 and int(self.o.length) <= 4096 :
            self.parser.print_header()
            if not self.o.outputfile : self.o.outputfile = self.home+'.kirmah'+Sys.sep+'.default.key'
            kg   = KeyGen(int(self.o.length))
            done = True
            if Io.file_exists(self.o.outputfile) and not self.o.force :

                Sys.pwarn((('the key file ',(self.o.outputfile, Sys.Clz.fgb3), ' already exists !'),
                           'if you rewrite this file, all previous files encrypted with the corresponding key will be unrecoverable !'))

                done   = Sys.pask('Are you sure to rewrite this file')
                self.stime  = Sys.datetime.now()
            if done :
                Io.set_data(self.o.outputfile, kg.key)
            Sys.pstep('Generate key file', self.stime, done)

            if done :
                Sys.print(' '*5+Sys.realpath(self.o.outputfile), Sys.Clz.fgB1, True)

        else :
            self.parser.error_cmd((('invalid option ',('-l, --length', Sys.Clz.fgb3), ' value (', ('128',Sys.Clz.fgb3),' to ', ('4096',Sys.Clz.fgb3),')'),))
开发者ID:necrose99,项目名称:Kirmah,代码行数:25,代码来源:cliapp.py

示例3: print_help

# 需要导入模块: from psr.sys import Sys [as 别名]
# 或者: from psr.sys.Sys import print [as 别名]
    def print_help():
        """"""
        Cli.print_header()
        Sys.print(Cli.conf.PRG_DESC, Sys.CLZ_HELP_DESC)
        Cli.print_usage("", True)
        Cli.print_options()
        Cli.printLineSep(Const.LINE_SEP_CHAR, Const.LINE_SEP_LEN)
        Sys.dprint()
        Sys.print("  EXEMPLES :\n", Sys.CLZ_HELP_CMD)
        CHQ = "'"

        Sys.print(" " * 4 + "command key :", Sys.CLZ_HELP_CMD)

        Sys.print(" " * 8 + "# generate a new crypted key of 2048 length", Sys.CLZ_HELP_COMMENT)
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("key -l ", Sys.CLZ_HELP_CMD, False)
        Sys.print("2048 ", Sys.CLZ_HELP_PARAM)

        Sys.print(
            " " * 8 + "# generate a new crypted key (default length is 1024) in a specified location",
            Sys.CLZ_HELP_COMMENT,
        )
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("key -o ", Sys.CLZ_HELP_CMD, False)
        Sys.print(Cli.DIRKEY + ".myNewKey", Sys.CLZ_HELP_PARAM)

        Cli.printLineSep(Const.LINE_SEP_CHAR, Const.LINE_SEP_LEN)
        Sys.print("\n" + " " * 4 + "command encrypt :", Sys.CLZ_HELP_CMD)

        Sys.print(
            " " * 8 + "# encrypt specified file with default crypted key and default options", Sys.CLZ_HELP_COMMENT
        )
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("enc ", Sys.CLZ_HELP_CMD, False)
        Sys.print(Cli.HOME + "mySecretTextFile.txt", Sys.CLZ_HELP_PARAM)

        Sys.print(
            " " * 8 + "# encrypt specified file with specified crypted key (full compression, no random but mix mode)",
            Sys.CLZ_HELP_COMMENT,
        )
        Sys.print(" " * 8 + "# on specified output location", Sys.CLZ_HELP_COMMENT)
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("enc ", Sys.CLZ_HELP_CMD, False)
        Sys.print("mySecretTextFile.txt", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -aRm -k ", Sys.CLZ_HELP_ARG, False)
        Sys.print(Cli.DIRKEY + ".myNewKey", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("test.kmh", Sys.CLZ_HELP_PARAM)

        Sys.print(
            " " * 8
            + "# encrypt specified file with default crypted key (no compression but random & mix mode and multiprocessing)",
            Sys.CLZ_HELP_COMMENT,
        )
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("enc ", Sys.CLZ_HELP_CMD, False)
        Sys.print("myBigTextFile.txt", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -Zrm -j ", Sys.CLZ_HELP_ARG, False)
        Sys.print("4", Sys.CLZ_HELP_PARAM)

        Cli.printLineSep(Const.LINE_SEP_CHAR, Const.LINE_SEP_LEN)
        Sys.print("\n" + " " * 4 + "command decrypt :", Sys.CLZ_HELP_CMD)

        Sys.print(" " * 8 + "# decrypt specified file with default crypted key", Sys.CLZ_HELP_COMMENT)
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("dec ", Sys.CLZ_HELP_CMD, False)
        Sys.print(Cli.HOME + "mySecretFile.kmh", Sys.CLZ_HELP_PARAM)

        Sys.print(
            " " * 8 + "# decrypt specified file with specified crypted key on specified output location",
            Sys.CLZ_HELP_COMMENT,
        )
        Sys.print(" " * 8 + Cli.conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("dec ", Sys.CLZ_HELP_CMD, False)
        Sys.print("myEncryptedSecretFile.kmh", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -k ", Sys.CLZ_HELP_ARG, False)
        Sys.print(Cli.HOME + ".kirmah" + Sys.sep + ".myNewKey", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("myDecryptedSecretFile.txt", Sys.CLZ_HELP_PARAM)

        Sys.print(
            " " * 8 + "# decrypt specified file with default crypted key and multiprocessing", Sys.CLZ_HELP_COMMENT
        )
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("dec ", Sys.CLZ_HELP_CMD, False)
        Sys.print("myEncryptedSecretFile.kmh", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -j ", Sys.CLZ_HELP_ARG, False)
        Sys.print("4", Sys.CLZ_HELP_PARAM)

        Cli.printLineSep(Const.LINE_SEP_CHAR, Const.LINE_SEP_LEN)
        Sys.print("\n" + " " * 4 + "command split :", Sys.CLZ_HELP_CMD)

        Sys.print(" " * 8 + "# split specified file with default crypted key", Sys.CLZ_HELP_COMMENT)
        Sys.print(" " * 8 + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("split ", Sys.CLZ_HELP_CMD, False)
        Sys.print(Cli.HOME + "myBigBinaryFile.avi", Sys.CLZ_HELP_PARAM)

        Sys.print(
            " " * 8 + "# split specified file on 55 parts with specified crypted key on specified output location",
            Sys.CLZ_HELP_COMMENT,
#.........这里部分代码省略.........
开发者ID:necrose99,项目名称:Kirmah,代码行数:103,代码来源:cli.py

示例4: print_options

# 需要导入模块: from psr.sys import Sys [as 别名]
# 或者: from psr.sys.Sys import print [as 别名]
    def print_options():
        """"""
        Sys.dprint("\n")
        Cli.printLineSep(Const.LINE_SEP_CHAR, Const.LINE_SEP_LEN)

        Sys.print("  MAIN OPTIONS :\n", Sys.CLZ_HELP_CMD)
        Sys.print(" " * 4 + "-v".ljust(13, " ") + ", --version", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "display programm version", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-d".ljust(13, " ") + ", --debug", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "enable debug mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-f".ljust(13, " ") + ", --force", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "force rewriting existing files without alert", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-q".ljust(13, " ") + ", --quiet", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "don't print status messages to stdout", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-h".ljust(13, " ") + ", --help", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "display help", Sys.CLZ_HELP_ARG_INFO)

        Sys.dprint("\n")
        Sys.print("  KEY OPTIONS :\n", Sys.CLZ_HELP_CMD)
        Sys.print(" " * 4 + "-l ", Sys.CLZ_HELP_ARG, False)
        Sys.print("LENGTH".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --length".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("LENGTH".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "specified key length (128 to 4096 - default:1024)", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --outputfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "specified key output filename", Sys.CLZ_HELP_ARG_INFO)

        Sys.dprint("\n")
        Sys.print("  ENCRYPT OPTIONS :\n", Sys.CLZ_HELP_CMD)
        Sys.print(" " * 4 + "-a".ljust(13, " ") + ", --fullcompress", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "enable full compression mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-z".ljust(13, " ") + ", --compress", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "enable compression mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-Z".ljust(13, " ") + ", --nocompress", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "disable compression mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-r".ljust(13, " ") + ", --random", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "enable random mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-R".ljust(13, " ") + ", --norandom", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "disable random mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-m".ljust(13, " ") + ", --mix", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "enable mix mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-M".ljust(13, " ") + ", --nomix", Sys.CLZ_HELP_ARG)
        Sys.print(" " * 50 + "disable mix mode", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-j ", Sys.CLZ_HELP_ARG, False)
        Sys.print("COUNT".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --multiprocess".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("COUNT".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "number of process for encryption (2 to 8)", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --keyfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "key filename used to encrypt", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --outputfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "specified encrypted output filename", Sys.CLZ_HELP_ARG_INFO)

        Sys.dprint("\n")
        Sys.print("  DECRYPT OPTIONS :\n", Sys.CLZ_HELP_CMD)
        Sys.print(" " * 4 + "-j ", Sys.CLZ_HELP_ARG, False)
        Sys.print("COUNT".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --multiprocess".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("COUNT".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "number of process for decryption (2 to 8)", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --keyfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "key filename used to decrypt", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --outputfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "specified decrypted output filename", Sys.CLZ_HELP_ARG_INFO)

        Sys.dprint("\n")
        Sys.print("  SPLIT OPTIONS :\n", Sys.CLZ_HELP_CMD)
        Sys.print(" " * 4 + "-p ", Sys.CLZ_HELP_ARG, False)
        Sys.print("COUNT".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --part".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("COUNT".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "count part to split", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --keyfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("FILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "key filename used to split", Sys.CLZ_HELP_ARG_INFO)
        Sys.print(" " * 4 + "-o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("TARFILE".ljust(10, " "), Sys.CLZ_HELP_PARAM, False)
        Sys.print(", --outputfile".ljust(18, " "), Sys.CLZ_HELP_ARG, False)
        Sys.print("TARFILE".ljust(10, " "), Sys.CLZ_HELP_PARAM)
        Sys.print(" " * 50 + "specified tar output filename", Sys.CLZ_HELP_ARG_INFO)

        Sys.dprint("\n")
        Sys.print("  MERGE OPTIONS :\n", Sys.CLZ_HELP_CMD)
#.........这里部分代码省略.........
开发者ID:necrose99,项目名称:Kirmah,代码行数:103,代码来源:cli.py

示例5: print_usage

# 需要导入模块: from psr.sys import Sys [as 别名]
# 或者: from psr.sys.Sys import print [as 别名]
    def print_usage(data, withoutHeader=False):
        """"""
        if not withoutHeader:
            Cli.print_header()

        Sys.print("  USAGE :\n", Sys.CLZ_HELP_CMD)
        Sys.print("    " + Cli.conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("help ", Sys.CLZ_HELP_CMD)

        Sys.print("    " + Cli.conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("key   ", Sys.CLZ_HELP_CMD, False)
        Sys.print("[ -l ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("length", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("outputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print("]", Sys.CLZ_HELP_ARG)

        Sys.print("    " + Cli.conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("enc   ", Sys.CLZ_HELP_CMD, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("inputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("} ", Sys.CLZ_HELP_PARAM, False)
        Sys.print("[", Sys.CLZ_HELP_ARG, False)
        Sys.print(" -z|Z|a -r|R -m|M -j ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("numProcess", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("keyFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("outputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print("]", Sys.CLZ_HELP_ARG)

        Sys.print("    " + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("dec   ", Sys.CLZ_HELP_CMD, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("inputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("} ", Sys.CLZ_HELP_PARAM, False)
        Sys.print("[", Sys.CLZ_HELP_ARG, False)
        Sys.print(" -j ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("numProcess", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("keyFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("outputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print("]", Sys.CLZ_HELP_ARG)

        Sys.print("    " + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("split ", Sys.CLZ_HELP_CMD, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("inputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("} ", Sys.CLZ_HELP_PARAM, False)
        Sys.print("[", Sys.CLZ_HELP_ARG, False)
        Sys.print(" -p ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("numParts", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("keyFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("tarOutputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print("]", Sys.CLZ_HELP_ARG)

        Sys.print("    " + conf.PRG_CLI_NAME + " ", Sys.CLZ_HELP_PRG, False)
        Sys.print("merge ", Sys.CLZ_HELP_CMD, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("inputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("} ", Sys.CLZ_HELP_PARAM, False)
        Sys.print("[", Sys.CLZ_HELP_ARG, False)
        Sys.print(" -k ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("keyFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print(" -o ", Sys.CLZ_HELP_ARG, False)
        Sys.print("{", Sys.CLZ_HELP_PARAM, False)
        Sys.print("outputFile", Sys.CLZ_HELP_PARAM, False)
        Sys.print("}", Sys.CLZ_HELP_PARAM, False)
        Sys.print("]", Sys.CLZ_HELP_ARG)
开发者ID:necrose99,项目名称:Kirmah,代码行数:98,代码来源:cli.py


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