option_parser.add_option('-s','--server',action='store',dest='server',default="imap.gmail.com",help='Email IMAP Server. Default is "imap.gmail.com".')
dest='user',
help='Email Account Username. Required.')
option_parser.add_option('-m','--mailbox',action='store',dest='mailbox',default='INBOX',help='Email Label. Default is "INBOX".')
option_parser.add_option(
option_parser.add_option('-l','--library',action='store',dest='library',help="calibre library db location. If none is passed, then this merely scrapes the email and error file for new stories and downloads them into the current directory.")
'-p',
'--password',
option_parser.add_option('-i','--input',action='store',dest='input',default="./fanfiction.txt",help="Error file. Any urls that fail will be output here, and file will be read to find any urls that failed previously. If file does not exist will create. File is overwitten every time the program is run.")
action='store',
dest='password',
option_parser.add_option('-c','--config',action='store',dest='config',help='Config file for inputs. Blank config file is provided. No default. If an option is present in whatever config file is passed it, the option will overwrite whatever is passed in through command line arguments unless the option is blank. Do not put any quotation marks in the options.')
help='Email Account Password. Required.')
option_parser.add_option('-o','--output',action='store_true',dest='live',help='Include this if you want all the output to be saved and posted live. Useful when multithreading.')
option_parser.add_option(
'-s',
'--server',
action='store',
dest='server',
default="imap.gmail.com",
help='Email IMAP Server. Default is "imap.gmail.com".')
option_parser.add_option(
'-m',
'--mailbox',
action='store',
dest='mailbox',
default='INBOX',
help='Email Label. Default is "INBOX".')
option_parser.add_option(
'-l',
'--library',
action='store',
dest='library',
help="calibre library db location. If none is passed, then this merely scrapes the email and error file for new stories and downloads them into the current directory.")
option_parser.add_option(
'-i',
'--input',
action='store',
dest='input',
default="./fanfiction.txt",
help="Error file. Any urls that fail will be output here, and file will be read to find any urls that failed previously. If file does not exist will create. File is overwitten every time the program is run.")
option_parser.add_option(
'-c',
'--config',
action='store',
dest='config',
help='Config file for inputs. Blank config file is provided. No default. If an option is present in whatever config file is passed it, the option will overwrite whatever is passed in through command line arguments unless the option is blank. Do not put any quotation marks in the options.')
option_parser.add_option(
'-o',
'--output',
action='store_true',
dest='live',
help='Include this if you want all the output to be saved and posted live. Useful when multithreading.')
c.execute("delete from books_tags_link where id in (select id from books_tags_link where tag in (select id from tags where name like '%Last Update%'));")
c.execute("delete from books_tags_link where id in (select id from books_tags_link where tag in (select id from tags where name like '%Last Update%'));")
option_parser.add_option('-p','--pushbullet',action='store',dest='pushbullet',help='If you want to use pushbullet, pass in your key here.')
option_parser.add_option(
option_parser.add_option('-d','--device',action='store',dest='pbdevice',help='If you wish to only send to a certian pushbullet device, put the device name here. If the device name is invalid, will just send to all pushbullets associated with the acc')
'-p',
option_parser.add_option('-n','--notify',action='store_true',dest='notify',help='Enable if you want to use system notifications. Only for Win/Linux.')
'--pushbullet',
option_parser.add_option('-c','--config',action='store',dest='config',help='Config file for inputs. Blank config file is provided. No default. If an option is present in whatever config file is passed it, the option will overwrite whatever is passed in through command line arguments unless the option is blank. Do not put any quotation marks in the options.')
action='store',
option_parser.add_option('-t','--tag',action='store_true',dest='tag',help='Strip Last Updated tags from calibredb. Requires library to be passed in.')
dest='pushbullet',
option_parser.add_option('-l','--library',action='store',dest='library',help='Path to calibre library. If you are connecting to a calibre webserver then this should be the url.')
help='If you want to use pushbullet, pass in your key here.')
option_parser.add_option('-a','--library-path',action='store',dest='library_path',help='Path location of library. Will be equal to library if nothing is passed in.')
option_parser.add_option(
'-d',
'--device',
action='store',
dest='pbdevice',
help='If you wish to only send to a certian pushbullet device, put the device name here. If the device name is invalid, will just send to all pushbullets associated with the acc')
option_parser.add_option(
'-n',
'--notify',
action='store_true',
dest='notify',
help='Enable if you want to use system notifications. Only for Win/Linux.')
option_parser.add_option(
'-c',
'--config',
action='store',
dest='config',
help='Config file for inputs. Blank config file is provided. No default. If an option is present in whatever config file is passed it, the option will overwrite whatever is passed in through command line arguments unless the option is blank. Do not put any quotation marks in the options.')
option_parser.add_option(
'-t',
'--tag',
action='store_true',
dest='tag',
help='Strip Last Updated tags from calibredb. Requires library to be passed in.')
option_parser.add_option(
'-l',
'--library',
action='store',
dest='library',
help='Path to calibre library. If you are connecting to a calibre webserver then this should be the url.')
option_parser.add_option(
'-a',
'--library-path',
action='store',
dest='library_path',
help='Path location of library. Will be equal to library if nothing is passed in.')