]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app.c: Throw warnings for nonexistent options
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 13 Dec 2021 00:08:26 +0000 (00:08 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 15 Dec 2021 00:10:52 +0000 (18:10 -0600)
commit030f7d41315560c304798d8edc40eea55e4c2a09
tree5e2cc93c4822fd988081aa3982299c3079be3f55
parenta4c42e70c13f3a81da5b107b14ef4df26d709652
app.c: Throw warnings for nonexistent options

Currently, Asterisk doesn't throw warnings if options
are passed into applications that don't accept them.
This can confuse users if they're unaware that they
are doing something wrong.

This adds an additional check to parse_options so that
a warning is thrown anytime an option is parsed that
doesn't exist in the parsing application, so that users
are notified of the invalid usage.

ASTERISK-29801 #close

Change-Id: Id029274a57135caca193c913307a63fd75e24679
main/app.c