Skip to content

Commit acd1c5e

Browse files
authored
Add shorthand flags for weep list (#107)
1 parent 7618bb4 commit acd1c5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/list.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ func init() {
3333
listCmd.PersistentFlags().BoolVarP(&extendedInfo, "extended-info", "e", false, "include additional information about roles such as associated apps")
3434
listCmd.PersistentFlags().BoolVarP(&shortInfo, "short-info", "s", false, "only display the role ARNs")
3535
listCmd.PersistentFlags().StringVarP(&accountFilter, "account", "a", "", "filter by aws account number or account name")
36-
listCmd.PersistentFlags().BoolVar(&showAll, "all", true, "show user profiles as well as instance profiles")
37-
listCmd.PersistentFlags().BoolVar(&showInstanceProfilesOnly, "instance", false, "show only instance roles")
38-
listCmd.PersistentFlags().BoolVar(&showConfiguredProfilesOnly, "profiles", false, "show only configured roles")
36+
listCmd.PersistentFlags().BoolVarP(&showAll, "all", "A", true, "show all available roles (default option)")
37+
listCmd.PersistentFlags().BoolVarP(&showInstanceProfilesOnly, "instance", "i", false, "show only instance roles")
38+
listCmd.PersistentFlags().BoolVarP(&showConfiguredProfilesOnly, "profiles", "p", false, "show only configured roles")
3939
rootCmd.AddCommand(listCmd)
4040
}
4141

0 commit comments

Comments
 (0)