diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-10-29 17:06:38 -0400 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-10-29 17:06:38 -0400 |
commit | 17eab179fe15658c1b904ede61d5554ac222c1d1 (patch) | |
tree | 2a3ad8984c7ae8cb7d2d84371168892ab3e1a4c5 /contrib/splicex/src/splicex.pyx | |
parent | ffe498e2ea71158854b23a3348f12648af870284 (diff) | |
download | resdb-17eab179fe15658c1b904ede61d5554ac222c1d1.tar.gz resdb-17eab179fe15658c1b904ede61d5554ac222c1d1.zip |
SpliceX invalid argument detection made
Diffstat (limited to 'contrib/splicex/src/splicex.pyx')
-rw-r--r-- | contrib/splicex/src/splicex.pyx | 3 |
1 files changed, 3 insertions, 0 deletions
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 |