mirror of https://github.com/rscmbbng/Border-Check
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
#!/usr/bin/python
|
|
# -*- coding: iso-8859-15 -*-
|
|
"""
|
|
BC (Border-Check) is a tool to retrieve info of traceroute tests over website navigation routes.
|
|
GPLv3 - 2013 by psy (epsylon@riseup.net)
|
|
"""
|
|
import optparse
|
|
|
|
class BCOptions(optparse.OptionParser):
|
|
def __init__(self, *args):
|
|
optparse.OptionParser.__init__(self,
|
|
prog='bc.py',
|
|
version='\nBC (Border-Check) 0.1v - 2013 - (GPLv3.0)\n',
|
|
usage= '\n\nbc [OPTIONS]')
|
|
|
|
self.add_option("-d", "--debug", action="store_true", dest="debug", help="debug mode")
|
|
self.add_option("--xml", action="store", dest="export_xml", help="export traces to xml (ex: --xml foo.xml)")
|
|
self.add_option("--bh", action="store", dest="browser_history", help="set browser's history path")
|
|
self.add_option("-b", action="store", dest="browser", help="set browser manually: F = Firefox / C = Chrome / S = Safari / Ch = Chromium")
|
|
#self.add_option("--proxy", action="store", dest="proxy", help="set proxy server")
|
|
|
|
def get_options(self, user_args=None):
|
|
(options, args) = self.parse_args(user_args)
|
|
return options
|
|
|
|
|