Esempio n. 1
0
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

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

        self._parser.add_argument("-b",
                                  "--battery",
                                  dest="name",
                                  action="store",
                                  default="BAT0",
                                  help="select battery to read stats from")

        self._parser.add_argument("-p",
                                  "--path",
                                  dest="path",
                                  action="store",
                                  default=ROOT,
                                  help=argparse.SUPPRESS)

        self._parser.add_argument("--output-format",
                                  dest="output_format",
                                  action="store",
                                  default="{battery.name}",
                                  help="format string to use for the output")
Esempio n. 2
0
    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."
        )
Esempio n. 3
0
    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="historystore",
            action="store",
            type=open,
            required=True,
            help="""path to places.sqlite file. usually in
/home/rgrau/.mozilla/firefox/__SOMETHING__.default/places.sqlite """)

        self._parser.add_argument("--output-format",
                                  dest="output_format",
                                  action="store",
                                  default="[[{url}][{title}]]",
                                  help="format string to use for the headline")

        self._parser.add_argument(
            "--omit-drawer",
            dest="omit_drawer",
            action="store_true",
            required=False,
            help=
            """Use a minimal output format that omits the PROPERTIES drawer."""
        )
Esempio n. 4
0
    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")
Esempio n. 5
0
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

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

        self._parser.add_argument("-q",
                                  "--query",
                                  dest="query",
                                  help="mu search query")

        self._parser.add_argument(
            "-m",
            "--me",
            dest="sender",
            help="space seperated list of mail addresses that belongs to you")

        self._parser.add_argument(
            "-d",
            "--delegation",
            dest="todo",
            action='store_true',
            help="adds NEXT or WAITING state to flagged messages")
Esempio n. 6
0
    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="historystore",
            action="store",
            type=open,
            required=True,
            help="""path to Google Chrome History sqlite file. usually in
/home/bala/.config/google-chrome/Default/History """)

        self._parser.add_argument("--output-format",
                                  dest="output_format",
                                  action="store",
                                  default="[[{url}][{title}]]",
                                  help="format string to use for the headline")

        self._parser.add_argument(
            "--omit-drawer",
            dest="omit_drawer",
            action="store_true",
            required=False,
            help=
            """Use a minimal output format that omits the PROPERTIES drawer."""
        )
Esempio n. 7
0
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

        add additional arguments
        """
        Memacs._parser_add_arguments(self)
Esempio n. 8
0
    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="source",
                                  action="store",
                                  required=True,
                                  help="path to gpx file or folder")

        self._parser.add_argument("-p",
                                  "--provider",
                                  dest="provider",
                                  action="store",
                                  default="google",
                                  help="geocode provider, default google")

        self._parser.add_argument("-u",
                                  "--url",
                                  dest="url",
                                  action="store",
                                  help="url to nominatim server (osm only)")

        self._parser.add_argument("--output-format",
                                  dest="output_format",
                                  action="store",
                                  default="{address}",
                                  help="format string to use for the headline")
Esempio n. 9
0
    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="by default, if there is an ISO datestamp without time, the mtime " +
                                  "is used for time extraction, when the ISO days " +
                                  "are matching. If you set this option, this extraction of the file time " +
                                  "is omitted.")

        self._parser.add_argument("--force-file-date-extraction",
                                  dest="force_filedate_extraction",
                                  action="store_true", help="force extraction of the file date and time" +
                                  "even when there is an ISO datestamp in the filename.")

        self._parser.add_argument("--skip-files-with-no-or-wrong-timestamp",
                                  dest="skip_notimestamp_files",
                                  action="store_true",
                                  help="by default, files with a missing or a wrong time-stamp " +
                                  "(2019-12-33) will be linked without Org mode time-stamp. " +
                                  "If you set this option, these files will not be part of the " +
                                  "output at all.")

        self._parser.add_argument("--omit-drawers",
                                  dest="omit_drawers", action="store_true",
                                  help="do not generate drawers that contain " +
                                  "ID properties. Can't be used with \"--append\".")
Esempio n. 10
0
    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")
Esempio n. 11
0
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

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

        self._parser.add_argument('--output-format',
                                  dest='output_format',
                                  action='store',
                                  default='{title}',
                                  help='formt string to use for the output')
Esempio n. 12
0
    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("--ignore-voicemail",
                                  dest="ignore_voicemail",
                                  action="store_true",
                                  help="ignore voicemail phonecalls")

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

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

        self._parser.add_argument(
            "--minimum-duration",
            dest="minimum_duration",
            action="store",
            type=int,
            help="[sec] show only calls with duration >= this argument")
Esempio n. 13
0
    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", required=True,
           action="store", help="input csv file", type=argparse.FileType('rb'))

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

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

        self._parser.add_argument(
            "-n", "--fieldnames", dest="fieldnames", default=None,
            action="store", help="header field names of the columns",
            type=str.lower)

        self._parser.add_argument(
            "-p", "--properties", dest="properties", default='',
            action="store", help="fields to use for properties",
            type=str.lower)

        self._parser.add_argument(
            "--timestamp-field", dest="timestamp_field", required=True,
            action="store", help="field name of the timestamp",
            type=str.lower)

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

        self._parser.add_argument(
            "--output-format", dest="output_format", required=True,
            action="store", help="format string to use for the output")

        self._parser.add_argument(
            "--skip-header", dest="skip_header",
            action="store_true", help="skip first line of the csv file")
Esempio n. 14
0
    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 a rss file")

        self._parser.add_argument(
           "-f", "--file", dest="file",
           action="store",
           help="path to rss file")
Esempio n. 15
0
    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="svnlogxmlfile",
            action="store",
            help="path to a an file which contains output from " + \
                " following svn command: svn log --xml")

        self._parser.add_argument(
           "-g", "--grep-author", dest="grepauthor",
           action="store",
           help="if you wanna parse only messages from a specific person. " + \
           "format:<author> of author to grep")
Esempio n. 16
0
    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")
Esempio n. 17
0
    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")
Esempio n. 18
0
    def _parser_add_arguments(self):
        """
        overwritten method of class Memacs

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

        self._parser.add_argument(
            "--logfile",
            dest="log",
            action="store",
            help="use this file instead of ~/.arbtt/capture.log")

        self._parser.add_argument(
            "--categorizefile",
            dest="cfg",
            action="store",
            help="use this file instead of ~/.arbtt/categorize.cfg")

        self._parser.add_argument("--also-inactive",
                                  dest="inactive",
                                  action="store_true",
                                  help="include inactive samples")

        self._parser.add_argument(
            "--intervals",
            dest="intervals",
            action="append", required=True,
            help="list intervals of tag or category " + \
                 "(the latter has to end with a colon)"
        )

        self._parser.add_argument("--csv",
                                  dest="csv",
                                  action="store",
                                  help="csv file")
Esempio n. 19
0
    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")
Esempio n. 20
0
    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="msgstore",
                                  action="store",
                                  type=open,
                                  required=True,
                                  help="path to decrypted msgstore.db file")

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

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

        self._parser.add_argument("--ignore-groups",
                                  dest="ignore_groups",
                                  action="store_true",
                                  help="ignore group messages")

        self._parser.add_argument(
            "--output-format",
            dest="output_format",
            action="store",
            default="{verb} [[{handler}:{name}][{name}]]: {text}",
            help="format string to use for the headline")

        self._parser.add_argument("--set-handler",
                                  dest="handler",
                                  action="store",
                                  default="tel",
                                  help="set link handler")

        self._parser.add_argument(
            "--demojize",
            dest="demojize",
            action="store_true",
            help="replace emoji with the appropriate :shortcode:")

        self._parser.add_argument("--skip-emoji",
                                  dest="skip_emoji",
                                  action="store_true",
                                  help="skip all emoji")

        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."
        )