@@ -15,17 +15,24 @@ namespace alias {
1515
1616static CStr _ver_[] = {" V" , " v" , " ver" , " vers" , " version" , nullptr };
1717
18- static CStr _det_ver_[] = {" VV" , " vv" , " VVV" , " vvv" , " det_ver" , " detailed_version" , nullptr };
18+ static CStr _det_ver_[] = { " VV" , " vv" , " VVV" , " vvv" , " det_ver" ,
19+ " detailed_version" , nullptr };
1920
20- static CStr _help_[] = {" H" , " h" , " help" , " hel" , " hlp" , " he" , nullptr };
21+ static CStr _help_[] = { " H" , " HH" , " h" , " hh" , " help" ,
22+ " hel" , " hlp" , " he" , nullptr };
2123
22- static CStr _fun_[] = {" F" , " fu" , " fun" , " func" , " funct" , " function" , nullptr };
24+ static CStr _fun_[] = { " F" , " FF" , " ff" , " fu" , " fun" , " func" ,
25+ " funct" , " function" , nullptr };
2326
24- static CStr _check_[] = {" CH" , " ch" , " CC" , " cc" , " che" , " chec" , " check" , nullptr };
27+ static CStr _check_[] = { " CH" , " CHECK" , " ch" , " CC" , " cc" , " che" , " chec" ,
28+ " check" , " check_blif" , nullptr };
2529
26- static CStr _csv_[] = {" CSV" , " cs" , " csv" , nullptr };
30+ static CStr _clean_[] = { " CLEAN" , " CLEANUP" , " clean" , " cleanup" , " clean_up" ,
31+ " cleanup_blif" , " cleanupblif" , " clean_up_blif" , nullptr };
2732
28- static CStr _xml_[] = {" XM" , " xm" , " xml" , " XML" , nullptr };
33+ static CStr _csv_[] = {" CSV" , " cs" , " csv" , " Csv" , nullptr };
34+
35+ static CStr _xml_[] = {" XM" , " xm" , " xml" , " Xml" , " XML" , nullptr };
2936
3037static CStr _pcf_[] = {" PCF" , " pcf" , nullptr };
3138
@@ -38,15 +45,13 @@ static CStr _json_[] = {"JS", "js", "jsf", "json", "port_info", "port_i", "PI",
3845
3946static CStr _output_[] = {" OU" , " ou" , " out" , " outp" , " output" , nullptr };
4047
41- static CStr _assOrd_[] = {" ASS" , " ass" , " assign" , " assign_unconstrained" , " assign_unconstrained_pins" , nullptr };
48+ static CStr _assOrd_[] = { " ASS" , " ass" , " assign" , " assign_unconstrained" ,
49+ " assign_unconstrained_pins" , nullptr };
4250
4351static CStr _trace_[] = {" TR" , " T" , " TT" , " tt" , " trace" , " Trace" , " Tr" , " tr" , " tra" , " trac" , nullptr };
4452
4553static CStr _test_[] = {" TE" , " TC" , " test" , " te" , " tc" , " tes" , " tst" , " test_case" , " test_c" , nullptr };
4654
47- #ifdef RSBE_UNIT_TEST_ON
48- #endif // RSBE_UNIT_TEST_ON
49-
5055}
5156
5257static constexpr size_t UNIX_Path_Max = PATH_MAX - 4 ;
@@ -158,6 +163,7 @@ void rsOpts::printHelp() const noexcept {
158163 " --version,-V" , " Version" ,
159164 " --trace,-T <number>" , " Trace level, default 3" ,
160165 " --check <blif_file_name>" , " BLIF or EBLIF file to check" ,
166+ " --clean_up <blif_file_name>" , " BLIF or EBLIF file to clean up" ,
161167 " --csv <csv_file_name>" , " CSV file (pin table) to check" ,
162168 nullptr , nullptr , nullptr };
163169
@@ -323,9 +329,12 @@ void rsOpts::parse(int argc, const char** argv) noexcept {
323329 check_ = true ;
324330 continue ;
325331 }
332+ if (op_match (arg, _clean_)) {
333+ cleanup_ = true ;
334+ continue ;
335+ }
326336
327- #ifdef RSBE_UNIT_TEST_ON
328- #endif // RSBE_UNIT_TEST_ON
337+ // --
329338
330339 if (op_match (arg, _csv_)) {
331340 i++;
0 commit comments