StoglRobotics / ros_team_workspace

RosTeamWorkspace is a framework for boosting collaboration in teams when developing software for robots using Robot Operating System (ROS1 and ROS2).
https://rtw.stoglrobotics.de
Apache License 2.0
89 stars 19 forks source link

Add option to get help about script usage. #46

Open destogl opened 2 years ago

destogl commented 2 years ago

This is the start of a work on adding help to the scripts to fast display their usage to users.

@mamueluth can you please check this? What do you think? (Please also answer to the TODO comments in the code.)

This is an interesting source about exiting early: https://echorand.me/posts/bash-functions-exit/

mamueluth commented 2 years ago

Maybe we could beside the print_and_exit function add functions like: print_warning print_info .... Which print the given message in a defined way (e.g color coded). This way we would have a consistent coloring for given message types and could change adjust formatting of messages as needed.

destogl commented 2 years ago

And yes, probably to add additionally a function process_inputs for this general things.

mergify[bot] commented 2 years ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 2 years ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 2 years ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 1 year ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 1 year ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 1 year ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 11 months ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 10 months ago

This pull request is in conflict. Could you fix it @destogl?

mergify[bot] commented 8 months ago

This pull request is in conflict. Could you fix it @destogl?