12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- // prodoc generates Protocol Buffer documentation.
15
+ // protodoc generates Protocol Buffer documentation.
16
16
//
17
17
// Usage:
18
- // prodoc [flags]
18
+ // protodoc [flags]
19
19
//
20
20
// 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])
22
22
// -p, --target-path string file path to save the documentation
23
23
// -t, --title string title of documentation
24
24
//
@@ -35,8 +35,8 @@ import (
35
35
36
36
var (
37
37
rootCommand = & cobra.Command {
38
- Use : "prodoc " ,
39
- Short : "prodoc generates Protocol Buffer documentation." ,
38
+ Use : "protodoc " ,
39
+ Short : "protodoc generates Protocol Buffer documentation." ,
40
40
RunE : CommandFunc ,
41
41
}
42
42
@@ -53,7 +53,7 @@ func init() {
53
53
func init () {
54
54
rootCommand .PersistentFlags ().StringVarP (& title , "title" , "t" , "" , "title of documentation" )
55
55
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" )
57
57
}
58
58
59
59
func CommandFunc (cmd * cobra.Command , args []string ) error {
0 commit comments