Skip to content

Commit

Permalink
feat(company): Add flags
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Jun 18, 2024
1 parent a800d33 commit 8fa1e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/company.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func init() {
_ = companyCmd.MarkFlagRequired("name")
companyCmd.Flags().IntVarP(&includeYear, "year", "y", -1, "Include the current year in the passwords")
companyCmd.Flags().BoolVar(&includeYearSeparators, "year-separators", false, "Add special characters between the company name and the year")
companyCmd.Flags().BoolVar(&includeMixedCase, "mixed-case", false, "Include variations with mixed case")
companyCmd.Flags().BoolVarP(&includeMixedCase, "mixed-case", "c", false, "Include variations with mixed case")
companyCmd.Flags().BoolVarP(&includeEndSpecial, "end-special", "s", false, "Add special characters at the end of the passwords")
companyCmd.Flags().BoolVar(&includeStartCaps, "start-caps", false, "Capitalize the first letter of the passwords")
companyCmd.Flags().BoolVarP(&includeStartCaps, "start-caps", "b", false, "Capitalize the first letter of the passwords")
companyCmd.Flags().IntVar(&includeShortYear, "short-year", -1, "Truncate the year to the last two digits")
companyCmd.Flags().BoolVarP(&includeLeetCode, "leet", "l", false, "Convert characters to leet speak")
companyCmd.Flags().BoolVarP(&includeUppercase, "uppercase", "u", false, "Capitalize all letters of the passwords")
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ func Execute() {
func init() {
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.PersistentFlags().StringVarP(&config.GlobalConfig.OutputFile, "output", "o", "", "Write to output file")
rootCmd.PersistentFlags().BoolVarP(&config.GlobalConfig.BatchParam, "batch", "b", false, "Don't ask questions")
rootCmd.PersistentFlags().BoolVar(&config.GlobalConfig.BatchParam, "batch", false, "Don't ask questions")
}

0 comments on commit 8fa1e0f

Please sign in to comment.