How to use the memacs.lib.memacs.Memacs._parser_add_arguments function in memacs

To help you get started, we’ve selected a few memacs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github novoid / Memacs / memacs / simplephonelogs.py View on Github external
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")
github novoid / Memacs / memacs / phonecalls_superbackup.py View on Github external
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")
github novoid / Memacs / memacs / phonecalls.py View on Github external
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")
github novoid / Memacs / memacs / photos.py View on Github external
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")
github novoid / Memacs / memacs / whatsapp.py View on Github external
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",
github novoid / Memacs / memacs / battery.py View on Github external
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"
        )
github novoid / Memacs / memacs / gpx.py View on Github external
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(
github novoid / Memacs / memacs / svn.py View on Github external
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: of author to grep")
github novoid / Memacs / memacs / lastfm.py View on Github external
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'
        )