Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Warn/error about unsupported flags #468

Closed
JustinDrake opened this issue Jun 29, 2017 · 3 comments
Closed

Warn/error about unsupported flags #468

JustinDrake opened this issue Jun 29, 2017 · 3 comments
Assignees
Labels
enhancement error better issue indicates improvement to error messaging help wanted

Comments

@JustinDrake
Copy link

JustinDrake commented Jun 29, 2017

Unsupported command line flags are silently ignored. For example, truffle test --unsupportedgarbage will ignore the --unsupportedgarbage flag.

I suggest warning about such flags, or maybe even erroring out.

@tcoulter tcoulter added the bug label Sep 15, 2017
@CruzMolina CruzMolina added the error better issue indicates improvement to error messaging label Jun 4, 2019
@CruzMolina
Copy link
Contributor

Requirements

  1. When truffle is passed an unsupported command line flag, it should throw a helpful error.

Example:

truffle test --unsupportedFlag

Error: `truffle test` does not currently support the `--unsupportedFlag`.
Please see https://truffleframework.com/docs/truffle/reference/truffle-commands
for currently supported command flags.
  1. Add an integration mocha test to verify proper error handling.

Prerequisite Context

@CruzMolina CruzMolina self-assigned this Jun 5, 2019
@eggplantzzz
Copy link
Contributor

Should this throw an error or perhaps just a warning?

skywing added a commit to skywing/truffle that referenced this issue Jun 20, 2019
skywing added a commit to skywing/truffle that referenced this issue Jun 22, 2019
skywing added a commit to skywing/truffle that referenced this issue Jun 22, 2019
skywing added a commit to skywing/truffle that referenced this issue Jun 22, 2019
eggplantzzz added a commit that referenced this issue Jul 1, 2019
@eggplantzzz
Copy link
Contributor

This has been fixed for a while now. Closing this for issue maintenance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement error better issue indicates improvement to error messaging help wanted
Projects
None yet
Development

No branches or pull requests

4 participants