Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 69 forks source link

fix: add alternative for deprecated commands #593

Closed roel4ez closed 1 year ago

roel4ez commented 1 year ago

Checklist

This checklist is used to make sure that common guidelines for a pull request are followed.

General guidelines

Description

Fixes #592

This PR adds a message to each deprecated command to show the newly recommended command, but for the short_help (iotedgedev --help) and the extended help (iotedgedev <command> --help). It does this by adding an additional flag to the add_command_with_deprecation method to pass in the alternative command. Additionally, the method sanity checks the short_help and ensures it is set.

roel4ez commented 1 year ago

also fixes #588