Skip to content
Snippets Groups Projects
  • Martin Afanasjew's avatar
    cf3486f9
    help: show command-specific help for invalid usage · cf3486f9
    Martin Afanasjew authored
    Instead of always printing the generic help text, print command-specific
    help if it is available and a command raised the `UsageError` exception.
    Put the error message underneath the help text (was above) to avoid that
    it scrolls off the screen.
    
    Thereby fix a regression where handling the invalid usage would fail to
    access `ARGV.usage` removed in c6536066.
    cf3486f9
    History
    help: show command-specific help for invalid usage
    Martin Afanasjew authored
    Instead of always printing the generic help text, print command-specific
    help if it is available and a command raised the `UsageError` exception.
    Put the error message underneath the help text (was above) to avoid that
    it scrolls off the screen.
    
    Thereby fix a regression where handling the invalid usage would fail to
    access `ARGV.usage` removed in c6536066.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.