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

Have no idea what input to pass #2492

Closed
S3j5b0 opened this issue Apr 13, 2021 · 2 comments
Closed

Have no idea what input to pass #2492

S3j5b0 opened this issue Apr 13, 2021 · 2 comments

Comments

@S3j5b0
Copy link

S3j5b0 commented Apr 13, 2021

Hi, I'm trying to use scancode to scan o project.

Typing scancode --help gets me this format:
scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <input>...

So i try passing my input directory in:

scancode -ic devops-21/

This however gives me:

'Error: Missing output option(s): at least one output option is required to save scan results.'

ok, cool, I should add an output option:
scancode -ic devops-21/ output.html
This however gives me this error

Invalid value for "input": Path "output.html" does not exist.

Which is really weird, why does it now interpret output.html as the input file?
How do I make the scan? a minimal working example would be really nice

@AyanSinhaMahapatra
Copy link
Member

AyanSinhaMahapatra commented Apr 13, 2021

@S3j5b0 you're missing the output format option before the output. Also, you should use JSON as output and use scancode-workbench to visualize, as HTML is deprecated now.

So, your scan should have been scancode -ic devops-21/ --json-pp outut.json for the same command as you mentioned above.

Use more options to scan for more things, see docs at scan example and all CLI options for more details.

It's also best to ask these kind of questions in our gitter chat rather than opening an issue.

@AyanSinhaMahapatra
Copy link
Member

This was a problem with providing the CLI options correctly and is documented in the docs clearly, with examples. From #2495 (comment) we see that you've run a scan correctly so closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants