當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。