Skip to content
Snippets Groups Projects
  • Naveen Albert's avatar
    030f7d41
    app.c: Throw warnings for nonexistent options · 030f7d41
    Naveen Albert authored
    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
    030f7d41
    History
    app.c: Throw warnings for nonexistent options
    Naveen Albert authored
    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
app.c 80.90 KiB