From 17eab179fe15658c1b904ede61d5554ac222c1d1 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 29 Oct 2011 17:06:38 -0400 Subject: SpliceX invalid argument detection made --- contrib/splicex/src/splicex.pyx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/splicex/src') diff --git a/contrib/splicex/src/splicex.pyx b/contrib/splicex/src/splicex.pyx index 22c4f32..1e7e271 100644 --- a/contrib/splicex/src/splicex.pyx +++ b/contrib/splicex/src/splicex.pyx @@ -275,6 +275,9 @@ for arg in sys.argv: DebugSwitch = True elif '--help' in arg: sys.exit(HELP()) + else: + if arg != '/usr/bin/splicex': + sys.exit(SpliceX + 'error: invalid argument: ' + arg) if DebugSwitch is False: sys.tracebacklimit = 0 -- cgit v1.2.3