Skip to content

Commit

Permalink
[config] Use 'click.fail()' in place of 'raise click.Abort' in order …
Browse files Browse the repository at this point in the history
…to print error messages to user; Other minor tweaks (sonic-net#341)

- Replace calls to 'click.Abort()' with the Click context method 'fail()' which takes an error message as a parameter in order to ensure descriptive messages are printed rather than simply the message, "Aborted"

- Change entrypoint name from 'cli' to 'config'

- Rename a couple helper functions for clarity

- Replace 'print' calls with 'click.echo()' for consistency

- Enhance comments
  • Loading branch information
jleveque authored Oct 16, 2018
1 parent 09977fc commit cffb38a
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 80 deletions.
Loading

0 comments on commit cffb38a

Please sign in to comment.