diff --git a/src/fosslight_prechecker/_add.py b/src/fosslight_prechecker/_add.py index 845838f..c35fc89 100644 --- a/src/fosslight_prechecker/_add.py +++ b/src/fosslight_prechecker/_add.py @@ -450,6 +450,7 @@ def add_content(target_path="", input_license="", input_copyright="", input_dl_u logger.info(f"\n# File list that have both license and copyright : {len(skip_files)} / {len(total_files_excluded)}") # Filter by file extension + total_files_excluded = [file for file in total_files_excluded if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE] missing_license = [file for file in missing_license if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE] missing_copyright = [file for file in missing_copyright if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE] diff --git a/src/fosslight_prechecker/_help.py b/src/fosslight_prechecker/_help.py index 5a55407..01807e6 100644 --- a/src/fosslight_prechecker/_help.py +++ b/src/fosslight_prechecker/_help.py @@ -32,9 +32,10 @@ -n\t\t\t Don't exclude venv*, node_modules, .*/, and the result of FOSSLight Scanners from the analysis Options for only 'add' mode - -l \t License name(SPDX format) to add - -c \t Copyright to add(ex, 2015-2021 LG Electronics Inc.) - -u \t Download Location to add(ex, https://github.com/fosslight/fosslight_prechecker)""" + Please enter any argument with double quotation marks(""). + -l \t License name(SPDX format) to add(ex, "Apache-2.0") + -c \t Copyright to add(ex, "2015-2021 LG Electronics Inc.") + -u \t Download Location to add(ex, "https://github.com/fosslight/fosslight_prechecker")""" def print_help_msg(exitOpt=True):