#! /usr/bin/env python

import sys

from sessionstoreparser import *

sys.exit(sessionstoreparser.main())

exit

"""
Extract selected URLs from open tabs from open windows:

    sessionstoreparser ~/.mozilla/firefox/profile/sessionstore.js

Extract selected URLs from all tabs from all windows:

    sessionstoreparser --all ~/.mozilla/firefox/profile/sessionstore.js

Extract all URLs from all tabs from all windows:

    sessionstoreparser --all --url=all \
      ~/.mozilla/firefox/profile/sessionstore.js

Extract all URLs from closed tabs from selected window

    sessionstoreparser --url=all --tab=closed --window=selected \
      ~/.mozilla/firefox/profile/sessionstore.js

Installation
------------

1. Place symlink to sessionstoreparser in directory listed in PATH.
2. ???
3. PROFIT!!1

"""