Skip to content

Commit fe43d6a

Browse files
committed
add flag for constants
1 parent e7265df commit fe43d6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func init() {
6565
rootCmd.PersistentFlags().StringVar(&globalCfg.FileConfig.Sheet, "sheet", "Sheet1", "default sheet to look at when unspecified in the start cell")
6666
rootCmd.PersistentFlags().IntVar(&globalCfg.FileConfig.Offset, "offset", 1, "column offset between ids and comments")
6767

68+
rootCmd.PersistentFlags().StringVar(&globalCfg.FileConfig.Constants, "constants", "", "start cell of constant ids")
6869
rootCmd.PersistentFlags().StringVar(&globalCfg.FileConfig.Numregs, "numregs", "", "start cell of numeric register ids")
6970
rootCmd.PersistentFlags().StringVar(&globalCfg.FileConfig.Posregs, "posregs", "", "start cell of position register ids")
7071
rootCmd.PersistentFlags().StringVar(&globalCfg.FileConfig.Sregs, "sregs", "", "start cell of string register ids")
@@ -155,7 +156,7 @@ func rootMain(cmd *cobra.Command, args []string) error {
155156
return err
156157
}
157158

158-
fmt.Printf("Found %d %ss.\n", len(defs), d.VerboseName())
159+
fmt.Printf("Found %d %ss.\n", len(defs), d)
159160
}
160161

161162
return nil

0 commit comments

Comments
 (0)