summaryrefslogtreecommitdiff
path: root/t/t0040-parse-options.sh
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2011-09-28 17:44:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-09-28 19:46:21 (GMT)
commit6acec0380bfcd5e3f91c9100bf4d415db8f7acfd (patch)
tree16f376495294910ce5ab5b52415a4e8a774d5936 /t/t0040-parse-options.sh
parentf858c646b5428519c4f847c5f15a9ead72a62b16 (diff)
downloadgit-6acec0380bfcd5e3f91c9100bf4d415db8f7acfd.zip
git-6acec0380bfcd5e3f91c9100bf4d415db8f7acfd.tar.gz
git-6acec0380bfcd5e3f91c9100bf4d415db8f7acfd.tar.bz2
parseopt: add OPT_NOOP_NOARG
Add OPT_NOOP_NOARG, a helper macro to define deprecated options in a standard way. The help text is taken from the no-op option -r of git revert. The callback could be made to emit a (conditional?) warning later. And we could also add OPT_NOOP (requiring an argument) etc. as needed. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0040-parse-options.sh')
-rwxr-xr-xt/t0040-parse-options.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0040-parse-options.sh b/t/t0040-parse-options.sh
index 007f39d..a1e4616 100755
--- a/t/t0040-parse-options.sh
+++ b/t/t0040-parse-options.sh
@@ -87,7 +87,7 @@ EOF
test_expect_success 'long options' '
test-parse-options --boolean --integer 1729 --boolean --string2=321 \
--verbose --verbose --no-dry-run --abbrev=10 --file fi.le\
- > output 2> output.err &&
+ --obsolete > output 2> output.err &&
test ! -s output.err &&
test_cmp expect output
'