-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling for invalid commands in main.cc (#750)
* Add handling for invalid commands in main.cc Added a default case to the switch statement in the main function to handle invalid commands. This improves user experience by providing guidance when an invalid command is used. * Fix Protobuf library shutdown placement The protobuf shutdown was previously never called, given that all switch cases returned before it. This commit introduces a new variable to store the return value to store the command execution, and returns after the proper shutdown of the Protobuf library to prevent resource leaks
- Loading branch information
Showing
1 changed file
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters