本文整理汇总了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"
)
示例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"
)
示例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")
示例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",
)
示例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)
示例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)
示例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")
示例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.")
示例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")
示例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")
示例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")
示例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")
示例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")
示例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\"")
示例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")