@@ -522,8 +522,8 @@ def output_keycode_file(output_file, output_file_data):
522
522
@click .option ("--output-layout" , default = "" )
523
523
@click .option ("--output-keycode" , default = "" )
524
524
@click .option ("--debug" , "-d" , type = click .INT , default = 1 )
525
- @click .option ("--verbose " , "-v " , default = "" )
526
- def main (keyboard , lang , platform , output , output_layout , output_keycode , debug , verbose ):
525
+ @click .option ("--show " , "-s " , default = "" )
526
+ def main (keyboard , lang , platform , output , output_layout , output_keycode , debug , show ):
527
527
global DEBUG_LEVEL
528
528
DEBUG_LEVEL = debug
529
529
echo (">" , keyboard , fg = "green" )
@@ -561,9 +561,12 @@ def main(keyboard, lang, platform, output, output_layout, output_keycode, debug,
561
561
output_layout = os .path .join (
562
562
BUILD_DIR , f"keyboard_layout_{ platform .lower ()} _{ lang .lower ()} .py"
563
563
)
564
- echo (f"Write to { output_layout } " , fg = "cyan" )
564
+ if not show :
565
+ echoE (f"Write to { output_layout } " , fg = "cyan" )
566
+ else :
567
+ echo (f"Write to { output_layout } " , fg = "cyan" )
565
568
output_layout_file (output_layout , data_layout )
566
- if verbose == "layout" or verbose == "v " :
569
+ if show == "layout" or show == "s " :
567
570
print (data_layout )
568
571
569
572
data_keycode = make_keycode_file (layout_data )
@@ -573,9 +576,12 @@ def main(keyboard, lang, platform, output, output_layout, output_keycode, debug,
573
576
output_keycode = os .path .join (
574
577
BUILD_DIR , f"keycode_{ platform .lower ()} _{ lang .lower ()} .py"
575
578
)
576
- echo (f"Write to { output_keycode } " , fg = "cyan" )
579
+ if not show :
580
+ echoE (f"Write to { output_keycode } " , fg = "cyan" )
581
+ else :
582
+ echo (f"Write to { output_keycode } " , fg = "cyan" )
577
583
output_keycode_file (output_keycode , data_keycode )
578
- if verbose == "keycode" or verbose == "v " :
584
+ if show == "keycode" or show == "s " :
579
585
print (data_keycode )
580
586
581
587
if __name__ == "__main__" :
0 commit comments