Skip to content

Commit

Permalink
Add deprecation warning for gazebo to gz-sim instead
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon committed Jun 16, 2022
1 parent 87762d6 commit 894cc66
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/gz.in
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ end
# Check that we have at least one configuration file with gz commands.
unless yaml_found
puts "I cannot find any available 'gz' command:\n"\
"\t* Did you install any gazebo library?\n"\
"\t* Did you install any Gazebo library?\n"\
"\t* Did you set the GZ_CONFIG_PATH environment variable?\n"\
"\t E.g.: export GZ_CONFIG_PATH=$HOME/local/share/gz\n"
exit(-1)
Expand Down Expand Up @@ -300,12 +300,6 @@ cmd_rb_library = commands[ARGV[0]].at(version_index)[1]['library_path']
require cmd_rb_library
cmd = Cmd.new

# TODO(CH3): Deprecated. Remove on tock.
# Print deprecation warning
if ARGV[0] == 'gazebo'
puts 'The `gazebo` verb is deprecated. Please use `sim` instead.'
end

# Set the process title to something nice.
Process.setproctitle("gz #{ARGV.join(' ')}")

Expand Down

0 comments on commit 894cc66

Please sign in to comment.