From 56e994f31ec12bbac6391ba7f3298489dedd6ac1 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 11 Nov 2012 11:09:15 +0100 Subject: [PATCH] add command-line parser to Qwad, currently only --help and --version --- Qwad.pyw | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Qwad.pyw b/Qwad.pyw index e9e9087..ee2c104 100644 --- a/Qwad.pyw +++ b/Qwad.pyw @@ -1,10 +1,24 @@ -#!/usr/bin/env python2 -#-*- coding: utf-8 -*- +#!/usr/bin/env python +#coding=utf-8 import sys +import optparse from PyQt4.QtGui import QApplication from PyQt4.QtCore import QTranslator, QString, QLocale from GUI.VenPri import MWQwad +parser = optparse.OptionParser("qwad