onnx / turnkeyml

The no-code AI toolchain
Apache License 2.0
63 stars 12 forks source link

Refresh: No need for a stack trace when users provides no stages #175

Closed danielholanda closed 2 months ago

danielholanda commented 2 months ago

Description

A full stack trace is shown when the user doesn't provide a stage name, which is not desirable. This type of issue should behave similar to argparse errors. (no stack trace)

Example: turnkey -i hello_world.py

@jeremyfowers

jeremyfowers commented 2 months ago

This can be accomplished by calling parser.error(msg) instead of raise Exception(msg).

jeremyfowers commented 2 months ago

Closed by #174