summaryrefslogtreecommitdiffstats
path: root/test/option-unknown.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-11-06 12:25:25 (GMT)
committerSteven Knight <knight@baldmt.com>2002-11-06 12:25:25 (GMT)
commit8dbe61168174137944a5bc55ea5a9ff389336376 (patch)
treeb507cef9d3ffa1248dde67c7f26368841c148b42 /test/option-unknown.py
parentd3a159a23fdeaa76c7931c7f8b1b7dafd43b4b99 (diff)
downloadSCons-8dbe61168174137944a5bc55ea5a9ff389336376.zip
SCons-8dbe61168174137944a5bc55ea5a9ff389336376.tar.gz
SCons-8dbe61168174137944a5bc55ea5a9ff389336376.tar.bz2
Refactor command-line parsing. (Steve Leblanc)
Diffstat (limited to 'test/option-unknown.py')
-rw-r--r--test/option-unknown.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/option-unknown.py b/test/option-unknown.py
index 496a7e0..7ddad94 100644
--- a/test/option-unknown.py
+++ b/test/option-unknown.py
@@ -29,21 +29,21 @@ import TestSCons
import string
import sys
-test = TestSCons.TestSCons(match = TestCmd.match_re)
+test = TestSCons.TestSCons()
test.write('SConstruct', "")
test.run(arguments = '-Z',
- stderr = """
-SCons error: option -Z not recognized
-File "\S+", line \d+, in short_has_arg
+ stderr = """usage: scons [OPTION] [TARGET] ...
+
+SCons error: no such option: -Z
""",
status = 2)
test.run(arguments = '--ZizzerZazzerZuzz',
- stderr = """
-SCons error: option --ZizzerZazzerZuzz not recognized
-File "\S+", line \d+, in long_has_args
+ stderr = """usage: scons [OPTION] [TARGET] ...
+
+SCons error: no such option: --ZizzerZazzerZuzz
""",
status = 2)