-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Report bad usage to stderr #43
base: Agoric
Are you sure you want to change the base?
Conversation
fprintf(file, "\t-h: print this help message\n"); | ||
fprintf(file, "\t-i <interval>: metering interval (default to 1)\n"); | ||
fprintf(file, "\t-l <limit>: metering limit (default to none)\n"); | ||
fprintf(file, "\t-s <size>: parser buffer size, in kB (default to 8192)\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fprintf(file, "\t-s <size>: parser buffer size, in kB (default to 8192)\n"); | |
fprintf(file, "\t-n: print worker interface codename\n"); | |
fprintf(file, "\t-s <size>: parser buffer size, in kB (default to 8192)\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kriskowal Please ping me back when you have adopted something like this, and I'll rereview.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pardon, my attention has been elsewhere. Will post.
Actually, it was |
Co-authored-by: Michael FIG <mfig@agoric.com>
While integrating #42, we discovered that
agd mnemonic
depended onxsnap -v
to be implemented, but since that feature was in another branch,xsnap -v
printed out the usage error information to stdout, in place of the version information.This change causes
xsnap -h
to write the usage to stdout, and all bad usage errors to write the same message to stderr.