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

Error: invalid Option flags fatal error on startup #1062

Closed
gy-mate opened this issue Jan 6, 2025 · 3 comments · Fixed by #1063
Closed

Error: invalid Option flags fatal error on startup #1062

gy-mate opened this issue Jan 6, 2025 · 3 comments · Fixed by #1063
Labels

Comments

@gy-mate
Copy link
Contributor

gy-mate commented Jan 6, 2025

Describe the bug
Device: N/A
Command line or Docker: command line, version 1.5.0, installed globally with npm

Describe what is happening

  1. Run:
    node-hp-scan-to
    or
    node-hp-scan-to -D
  2. Get the error:
    Current commit ID: 2514873660d624dc69aea50b6259f6f4e579152c
    Error: invalid Option flags, short option is dash and single character: '-ip, --address <ip>'
    at splitOptionFlags (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/option.js:329:11)
    at new Option (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/option.js:20:25)
    at Command.createOption (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/command.js:570:12)
    at Command._optionEx (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/command.js:729:25)
    at Command.option (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/command.js:771:17)
    at setupParameterOpts (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:176:13)
    at main (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:272:5)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:343:1)
    at Module._compile (node:internal/modules/cjs/loader:1740:14)
    at Object..js (node:internal/modules/cjs/loader:1905:10)
    
@ldehner
Copy link

ldehner commented Jan 6, 2025

I just got the same error

@manuc66
Copy link
Owner

manuc66 commented Jan 6, 2025

Released in npm package version 1.5.1

@gy-mate
Copy link
Contributor Author

gy-mate commented Jan 6, 2025

@manuc66 Thanks a lot, it works now! :)

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

Successfully merging a pull request may close this issue.

3 participants