Skip to content

Conversation

mfalkvidd
Copy link
Member

The user probably made a mistake. Let the user correct the mistake
before continuing.

Ref: #1518

Example output after this change:
$ ./configure --my-transport=laser
[SECTION] Detecting target machine.
[OK] machine detected: SoC=unknown, Type=unknown, CPU=x86_64.
[SECTION] Checking GPIO Sysfs.
[WARNING] /sys/class/gpio/export not found.
[SECTION] Detecting SPI driver.
[WARNING] No supported SPI driver detected. Using SPIDEV.
[SECTION] Gateway configuration.
[OK] Type: ethernet.
[ERROR] Invalid transport type laser.
$ ./configure --my-mqtt-username=user
[ERROR] Unknown option detected: --my-mqtt-username=user

The user probably made a mistake. Let the user correct the mistake
before continuing.

Ref: mysensors#1518

Example output after this change:
$ ./configure --my-transport=laser
[SECTION] Detecting target machine.
[OK] machine detected: SoC=unknown, Type=unknown, CPU=x86_64.
[SECTION] Checking GPIO Sysfs.
  [WARNING] /sys/class/gpio/export not found.
[SECTION] Detecting SPI driver.
  [WARNING] No supported SPI driver detected. Using SPIDEV.
[SECTION] Gateway configuration.
  [OK] Type: ethernet.
[ERROR] Invalid transport type laser.
$ ./configure --my-mqtt-username=user
[ERROR] Unknown option detected: --my-mqtt-username=user
@mfalkvidd mfalkvidd force-pushed the configure-exit-on-bad-parameter branch from 28a4509 to c185709 Compare April 7, 2022 11:03
@tbowmo tbowmo merged commit 263ea26 into mysensors:development Apr 7, 2022
@mfalkvidd mfalkvidd deleted the configure-exit-on-bad-parameter branch April 7, 2022 13:02
tekka007 pushed a commit to tekka007/MySensors that referenced this pull request Jul 25, 2022
The user probably made a mistake. Let the user correct the mistake
before continuing.

Ref: mysensors#1518

Example output after this change:
$ ./configure --my-transport=laser
[SECTION] Detecting target machine.
[OK] machine detected: SoC=unknown, Type=unknown, CPU=x86_64.
[SECTION] Checking GPIO Sysfs.
  [WARNING] /sys/class/gpio/export not found.
[SECTION] Detecting SPI driver.
  [WARNING] No supported SPI driver detected. Using SPIDEV.
[SECTION] Gateway configuration.
  [OK] Type: ethernet.
[ERROR] Invalid transport type laser.
$ ./configure --my-mqtt-username=user
[ERROR] Unknown option detected: --my-mqtt-username=user
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

Successfully merging this pull request may close these issues.

2 participants