changeset 709:77fbf12a5d3a draft

SpliceX invalid argument detection made
author d3v11 <d3v11@d3v11.ano>
date Sat, 29 Oct 2011 17:06:38 -0400
parents a26ee55f8c88
children a8f74ee394a3
files contrib/splicex/src/splicex.pyx
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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