Commit a5a9be2
Allow aliases for run_opt
Summary:
Lets allow aliases for a runopt. This will give downstream users to have multiple ways of accessing the same runopt.
1. Modify add() to accept this and add a new optional aliases List[str] that will store this.
2. Modify resolve() to check if a different alias is already used in cfg i.e if the "run_as" and "Run_As" are aliases for the same one, we dont allow for both to be present in the cfg.
Differential Revision: D841578701 parent b376e8c commit a5a9be2
2 files changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| 899 | + | |
899 | 900 | | |
900 | 901 | | |
901 | 902 | | |
| |||
1029 | 1030 | | |
1030 | 1031 | | |
1031 | 1032 | | |
| 1033 | + | |
| 1034 | + | |
1032 | 1035 | | |
1033 | 1036 | | |
1034 | | - | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1035 | 1046 | | |
1036 | 1047 | | |
1037 | 1048 | | |
| |||
1145 | 1156 | | |
1146 | 1157 | | |
1147 | 1158 | | |
1148 | | - | |
| 1159 | + | |
1149 | 1160 | | |
1150 | 1161 | | |
1151 | 1162 | | |
| |||
1156 | 1167 | | |
1157 | 1168 | | |
1158 | 1169 | | |
| 1170 | + | |
1159 | 1171 | | |
1160 | 1172 | | |
1161 | 1173 | | |
| |||
1166 | 1178 | | |
1167 | 1179 | | |
1168 | 1180 | | |
1169 | | - | |
1170 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1171 | 1189 | | |
1172 | 1190 | | |
1173 | 1191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
581 | 595 | | |
582 | 596 | | |
583 | 597 | | |
| |||
0 commit comments