This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eliminate misleading flag parsing error
The standard mflags error reporting produces an error like ``` flag provided but not defined: -p See '/home/weave/weaver --help'. ``` on stderr. This is misleading since the program name is container local, so not something the user actually invoked. Furthermore, what the user *can* invoke doesn't have a `--help` option. With this change the error becomes ``` FATA: 2015/08/18 10:56:23.635119 Incorrect usage: flag provided but not defined: -p ``` There are a few issues with this: - we no longer get a usage message - we no longer get deprecation warnings logged Fixes #1321.
- Loading branch information
Showing
1 changed file
with
36 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters