# HG changeset patch # User d3v11 # Date 1319922398 14400 # Node ID 77fbf12a5d3a8f19dcfebd6d8cac5beceadcccdc # Parent a26ee55f8c88e786f3446dc5377bc636a7e1ef11 SpliceX invalid argument detection made diff -r a26ee55f8c88 -r 77fbf12a5d3a contrib/splicex/src/splicex.pyx --- a/contrib/splicex/src/splicex.pyx Sat Oct 29 12:02:16 2011 -0400 +++ b/contrib/splicex/src/splicex.pyx Sat Oct 29 17:06:38 2011 -0400 @@ -275,6 +275,9 @@ 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