File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ required: "(required)"
1818repeatable : " (repeatable)"
1919default : " Default: %{value}"
2020allowed : " Allowed: %{values}"
21+ needs : " Needs: %{values}"
22+ conflicts : " Conflicts: %{values}"
2123
2224# Fixed flags help text
2325help_flag_text : Show this help
Original file line number Diff line number Diff line change @@ -15,5 +15,13 @@ if default
1515 end
1616end
1717
18+ if needs
19+ > printf " {{ strings[:needs] % { values: needs.join(', ') } }}\n"
20+ end
21+
22+ if conflicts
23+ > printf " {{ strings[:conflicts] % { values: conflicts.join(', ') } }}\n"
24+ end
25+
1826> echo
1927>
Original file line number Diff line number Diff line change 102102 "minLength" : 1 ,
103103 "default" : " Allowed: %{values}"
104104 },
105+ "needs" : {
106+ "title" : " needs" ,
107+ "description" : " The string template for the list of needed flags\n https://bashly.dannyb.co/advanced/strings/#custom-strings" ,
108+ "type" : " string" ,
109+ "minLength" : 1 ,
110+ "default" : " Needs: %{values}"
111+ },
112+ "conflicts" : {
113+ "title" : " conflicts" ,
114+ "description" : " The string template for the list of conflicting flags\n https://bashly.dannyb.co/advanced/strings/#custom-strings" ,
115+ "type" : " string" ,
116+ "minLength" : 1 ,
117+ "default" : " Conflicts: %{values}"
118+ },
105119 "help_flag_text" : {
106120 "title" : " help flag text" ,
107121 "description" : " The help message for --help\n https://bashly.dannyb.co/advanced/strings/#custom-strings" ,
You can’t perform that action at this time.
0 commit comments