Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify help msg if invalid input #47

Merged
merged 3 commits into from Sep 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -62,11 +62,11 @@ fosslight [Mode] [option1] <arg1> [option2] <arg2>...
### Parameters
Mode
```
all Run all scanners(Default)
source Run FOSSLight Source
dependency Run FOSSLight Dependency
binary Run FOSSLight Binary
prechecker Run FOSSLight Prechecker
all Run all scanners
compare Compare two FOSSLight reports
```
Options:
Expand Down
1 change: 1 addition & 0 deletions src/fosslight_scanner/_help.py
Expand Up @@ -13,6 +13,7 @@

Parameters:
Mode
all\t\t\t Run all scanners(Default)
source\t\t Run FOSSLight Source
dependency\t\t Run FOSSLight Dependency
binary\t\t Run FOSSLight Binary
Expand Down
3 changes: 2 additions & 1 deletion src/fosslight_scanner/cli.py
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022 LG Electronics Inc.
# SPDX-License-Identifier: Apache-2.0
import sys
from argparse import ArgumentParser
from ._help import print_help_msg
from .fosslight_scanner import run_main, PKG_NAME
Expand All @@ -28,7 +29,7 @@ def main():
try:
args = parser.parse_args()
except SystemExit:
print_help_msg()
sys.exit(0)

if args.help:
print_help_msg()
Expand Down