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


Python Memacs._parser_add_arguments方法代码示例

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


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

示例1: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        Memacs._parser_add_arguments(self)

        self._parser.add_argument("-f", "--folder",
                                  dest="filenametimestamps_folder",
                                  action="append",
                                  help="path to a folder to search for " + \
                                      "filenametimestamps, " + \
                                  "multiple folders can be specified: " + \
                                      "-f /path1 -f /path2")

        self._parser.add_argument("-x", "--exclude", dest="exclude_folder",
                        help="path to excluding folder, for more excludes " + \
                             "use this: -x /path/exclude -x /path/exclude")

        self._parser.add_argument("--filelist", dest="filelist",
                        help="file containing a list of files to process. " + \
                             "either use \"--folder\" or the \"--filelist\" argument, not both.")

        self._parser.add_argument("--ignore-non-existing-items",
                                  dest="ignore_nonexisting", action="store_true",
                                  help="ignores non-existing files or folders within filelist")

        self._parser.add_argument("-l", "--follow-links",
                                  dest="follow_links", action="store_true",
                                  help="follow symbolics links," + \
                                      " default False")

        self._parser.add_argument("--skip-file-time-extraction",
                                  dest="skip_filetime_extraction",
                                  action="store_true",
                                  help="skip extraction of the file time " + \
                                  " in files containing only the date in " + \
                                  "the filename"
        )
开发者ID:andrewjss,项目名称:Memacs,代码行数:37,代码来源:filenametimestamps.py

示例2: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        Memacs._parser_add_arguments(self)

        self._parser.add_argument("-f", "--folder",
                                  dest="filenametimestamps_folder",
                                  action="append",
                                  help="path to a folder to search for " + \
                                      "filenametimestamps, " + \
                                  "multiple folders can be specified: " + \
                                      "-f /path1 -f /path2")

        self._parser.add_argument("-x", "--exclude", dest="exclude_folder",
                        help="path to excluding folder, for more excludes " + \
                             "use this: -x /path/exclude -x /path/exclude")

        self._parser.add_argument("-l", "--follow-links",
                                  dest="follow_links", action="store_true",
                                  help="follow symbolics links," + \
                                      " default False")

        self._parser.add_argument("--skip-file-time-extraction",
                                  dest="skip_filetime_extraction",
                                  action="store_true",
                                  help="skip extraction of the file time " + \
                                  " in files containing only the date in " + \
                                  "the filename"
        )
开发者ID:ajft,项目名称:Memacs,代码行数:29,代码来源:filenametimestamps.py

示例3: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--file", dest="smsxmlfile",
            action="store", required=True,
            help="path to sms xml backup file")

        self._parser.add_argument(
            "--ignore-incoming", dest="ignore_incoming",
            action="store_true",
            help="ignore incoming phonecalls")

        self._parser.add_argument(
            "--ignore-outgoing", dest="ignore_outgoing",
            action="store_true",
            help="ignore outgoing phonecalls")

        self._parser.add_argument(
            "--ignore-missed", dest="ignore_missed",
            action="store_true",
            help="ignore outgoing phonecalls")

        self._parser.add_argument(
            "--minimum-duration", dest="minimum_duration",
            action="store", type=int,
            help="[sec] show only calls with duration >= this argument")
开发者ID:ajft,项目名称:Memacs,代码行数:34,代码来源:phonecalls.py

示例4: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f",
            "--file",
            dest="gitrevfile",
            action="store",
            help="path to a an file which contains output from "
            + " following git command: git rev-list --all --pretty=raw",
        )

        self._parser.add_argument(
            "-g",
            "--grep-user",
            dest="grepuser",
            action="store",
            help="if you wanna parse only commit from a specific person. "
            + "format:<Forname Lastname> of user to grep",
        )

        self._parser.add_argument(
            "-e",
            "--encoding",
            dest="encoding",
            action="store",
            help="default encoding utf-8, see "
            + "http://docs.python.org/library/codecs.html#standard-encodings"
            + "for possible encodings",
        )
开发者ID:njagadeesh,项目名称:Memacs,代码行数:37,代码来源:git.py

示例5: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-l", "--list-folders",
           dest="list_folders",
           action="store_true",
           help="show possible folders of connection")

        self._parser.add_argument(
           "-f", "--folder_name",
           dest="folder_name",
           help="name of folder to get emails from, " + \
            "when you don't know name call --list-folders")

        self._parser.add_argument(
           "--fetch-number",
           dest="fetch_number",
           help="how many -last- mails should we fetch from the server?",
           type=int)
开发者ID:Neil-Smithline,项目名称:Memacs,代码行数:27,代码来源:imap.py

示例6: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)
开发者ID:njagadeesh,项目名称:Memacs,代码行数:9,代码来源:example.py

示例7: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-u", "--url", dest="url",
           action="store",
           help="url to xml file")

        self._parser.add_argument(
           "-f", "--file", dest="file",
           action="store",
           help="path to xml file")

        self._parser.add_argument(
           "-i", "--ini", dest="ini",
           action="store",
           help="path to xml config file")

        self._parser.add_argument(
           "-co", "--section", dest="section",
           action="store",
           help="section of config file")

        self._parser.add_argument(
           "-de", "--delimiter", dest="splitcriterion",
           action="store",
           help="you can set this to specify a " +
                "splitting-criterion for tags(" " is default")
开发者ID:Daniel1234,项目名称:Memacs,代码行数:35,代码来源:xmlsource.py

示例8: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--file", dest="smsxmlfile",
            action="store", required=True,
            help="path to sms xml backup file")

        self._parser.add_argument(
            "--ignore-incoming", dest="ignore_incoming",
            action="store_true",
            help="ignore incoming smses")

        self._parser.add_argument(
            "--ignore-outgoing", dest="ignore_outgoing",
            action="store_true",
            help="ignore outgoing smses")

        self._parser.add_argument(
            "--orgcontactsfile", dest="orgcontactsfile",
            action="store", required=False,
            help="path to Org-contacts file for phone number lookup. Phone numbers have to match.")
开发者ID:easeflyer,项目名称:Memacs,代码行数:29,代码来源:sms.py

示例9: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--file", dest="phonelogfile",
            action="store", required=True,
            help="path to phone log file")
开发者ID:geekinthesticks,项目名称:Memacs,代码行数:14,代码来源:simplephonelogs.py

示例10: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-fp", "--folder_path",
           dest="folder_path",
           help="path to the Maildir folder"
                "path/to/Maildirfolder")
开发者ID:Daniel1234,项目名称:Memacs,代码行数:15,代码来源:maildir.py

示例11: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)
        self._parser.add_argument(
           "-mf", "--mbox-mail-file", dest="mail_file",
           action="store",
           help="path to maildir file")

        self._parser.add_argument(
           "-nf", "--mbox-news-file", dest="news_file",
           action="store",
           help="path to mbox newsgroup file")
开发者ID:Daniel1234,项目名称:Memacs,代码行数:18,代码来源:mbox.py

示例12: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
            "-f", "--folder", dest="photo_folder",
            action="store", required=True,
            help="path to search for photos")

        self._parser.add_argument("-l", "--follow-links",
                                  dest="follow_links", action="store_true",
                                  help="follow symbolics links," + \
                                      " default False")
开发者ID:andrewjss,项目名称:Memacs,代码行数:19,代码来源:photos.py

示例13: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-f", "--store_file",
           dest="store_file",
           help="path to store.tgs file"
                " path/to/store.tgs")
        self._parser.add_argument(
           "-sp", "--store_path",
           dest="store_path",
           help="path to storage main folder"
                " path/to/mainfolder")
开发者ID:Daniel1234,项目名称:Memacs,代码行数:20,代码来源:tagstore.py

示例14: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-f", "--file", dest="csvfile",
           action="store",
           help="input csv file")

        self._parser.add_argument(
           "-d", "--delimiter", dest="delimiter",
           action="store",
           help="delimiter, default \";\"")

        self._parser.add_argument(
           "-e", "--encoding", dest="encoding",
           action="store",
           help="default encoding utf-8, see " + \
           "http://docs.python.org/library/codecs.html#standard-encodings" + \
           "for possible encodings")

        self._parser.add_argument(
           "-ti", "--timestamp-index", dest="timestamp_index",
           action="store",
           help="on which column is timestamp?")

        self._parser.add_argument(
           "-tf", "--timestamp-format", dest="timestamp_format",
           action="store",
           #help="format of the timestamp, i.e. \"%d.%m.%Y %H:%M:%S:%f\" " + \
           help="format of the timestamp, i.e. " + \
           "\"%%d.%%m.%%Y %%H:%%M:%%S:%%f\" " + \
           "for  \"14.02.2012 10:22:37:958\" see " + \
           "http://docs.python.org/library/time.html#time.strftime" + \
           "for possible formats")

        self._parser.add_argument(
           "-oi", "--output-indices", dest="output_indices",
           action="store",
           help="indices to use for output i.e. \"1 2 3\"")
开发者ID:Daniel1234,项目名称:Memacs,代码行数:46,代码来源:csv.py

示例15: _parser_add_arguments

# 需要导入模块: from lib.memacs import Memacs [as 别名]
# 或者: from lib.memacs.Memacs import _parser_add_arguments [as 别名]
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)

        self._parser.add_argument(
           "-l", "--list-folders",
           dest="list_folders",
           action="store_true",
           help="show possible folders of connection")

        self._parser.add_argument(
           "-f", "--folder_name",
           dest="folder_name",
           help="name of folder to get emails from, " + \
            "when you don't know name call --list-folders")
开发者ID:Daniel1234,项目名称:Memacs,代码行数:21,代码来源:imap.py


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