You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
The command plugin has a few rough edges which make it harder to use
than it should.
Modifications:
- Check if help was requested before doing any other arg parsing.
- Check all input files end in '.proto', if they don't it's likely an
option was passed in the wrong place, so print a helpful error
message.
- Change the default output path to be ".", i.e. the directory of the
caller. Previously it was the plugin working directory which is buried
in '.build' so it would appear as if nothing was generated.
- Improve the formatting of the error message if the protoc invocation
failed. The error message now includes a better formatted command that
the user can invoke directly. Remove the error description because it
was always "NSTaskTermination" without any useful information
attached.
Result:
Command plugin is a little easier to use.
0 commit comments