Skip to content

Commit f1d66c3

Browse files
committed
Update main.go
1 parent accf236 commit f1d66c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// prodoc generates Protocol Buffer documentation.
15+
// protodoc generates Protocol Buffer documentation.
1616
//
1717
// Usage:
18-
// prodoc [flags]
18+
// protodoc [flags]
1919
//
2020
// Flags:
21-
// -o, --language-options value language options in field descriptions (default [Go,C++,Java,Python])
21+
// -o, --languags value language options in field descriptions (default [Go,C++,Java,Python])
2222
// -p, --target-path string file path to save the documentation
2323
// -t, --title string title of documentation
2424
//
@@ -35,8 +35,8 @@ import (
3535

3636
var (
3737
rootCommand = &cobra.Command{
38-
Use: "prodoc",
39-
Short: "prodoc generates Protocol Buffer documentation.",
38+
Use: "protodoc",
39+
Short: "protodoc generates Protocol Buffer documentation.",
4040
RunE: CommandFunc,
4141
}
4242

@@ -53,7 +53,7 @@ func init() {
5353
func init() {
5454
rootCommand.PersistentFlags().StringVarP(&title, "title", "t", "", "title of documentation")
5555
rootCommand.PersistentFlags().StringVarP(&targetPath, "target-path", "p", "", "file path to save the documentation")
56-
rootCommand.PersistentFlags().StringSliceVarP(&languageOptions, "language-options", "o", []string{"Go", "C++", "Java", "Python"}, "language options in field descriptions")
56+
rootCommand.PersistentFlags().StringSliceVarP(&languageOptions, "languages", "o", []string{"Go", "C++", "Java", "Python"}, "language options in field descriptions")
5757
}
5858

5959
func CommandFunc(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)