Nativefier: Window location not setable due invalid argument (long / short option)

Created on 7 Dec 2020  路  4Comments  路  Source: jiahaog/nativefier

Homework

Bug description

The application location cannot be set with options neither --x and --y

Invalid argument passed: --x .
Nativefier supports short options (like "-n") and long options (like "--name"), all lowercase. Run "nativefier --help" for help.
Aborting

nor -x and -y.

error: unknown option '-x'

Steps to reproduce

nativefier foobar https://google.com --x 10 --y 10

Expected behavior

The location will be set or a short and long option will be available.

Context

  • Nativefier: 42.0.1
  • Node.js: 14.15.1
  • Npm: 6.14.9
  • OS: (for example: Windows 10 build 1809)
  • Is it a regression? yes - last working 11.0.2
bug

Most helpful comment

@codekandis thaaaanks for the fast and precise report! Fixed in 42.0.2, available now in npm.

All 4 comments

@codekandis thaaaanks for the fast and precise report! Fixed in 42.0.2, available now in npm.

You're sooo much welcome! I really appreciate your hard work on it and I really like what I get from it!

I can confirm the options are working now in 42.0.2. I'd suggest to change the old options --x and --y to the short options -x and -y to become strict with all other options. In conclusion you'd need to introduce the new long options --x-position and y-position in the next major release.

I'd suggest to change the old options --x and --y to the short options -x and -y to become strict with all other options. In conclusion you'd need to introduce the new long options --x-position and y-position in the next major release

@codekandis nope, won't do that, because holy backwards compatibility. I do my best to preserve it, so I prefer a little inconsistency of a special case tested by a unit test over annoying users.

Beside my suggestion I totally agree with that.

Was this page helpful?
0 / 5 - 0 ratings