Skip to content

Commit

Permalink
Deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoenig committed Apr 29, 2019
1 parent 430812e commit 556bc2e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ ign_build_tests(TYPE UNIT
ignition-gazebo${PROJECT_VERSION_MAJOR}
)


# Create the gazebo executable
ign_add_executable(ign-gazebo-exec main.cc)
set_property(TARGET ign-gazebo-exec PROPERTY OUTPUT_NAME ign-gazebo)
Expand Down
5 changes: 5 additions & 0 deletions src/gui_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ DEFINE_int32(v, 1, "");
void help()
{
std::cout
<< "DEPRECATED: Use the 'ign gazebo' command line tool."
<< std::endl
<< std::endl
<< "ign-gazebo-gui -- Run the Gazebo GUI." << std::endl
<< std::endl
<< "`ign-gazebo-gui` [options]" << std::endl
Expand Down Expand Up @@ -123,6 +126,8 @@ int main(int _argc, char **_argv)
}

ignition::common::Console::SetVerbosity(FLAGS_verbose);
ignerr << "The ign-gazebo-gui tool is deprecated, and is replaced by "
<< "`ign gazebo`\n";
ignmsg << "Ignition Gazebo GUI v" << IGNITION_GAZEBO_VERSION_FULL
<< std::endl;

Expand Down
5 changes: 5 additions & 0 deletions src/server_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ DEFINE_string(playback, "", "Use logging system to play back states");
void help()
{
std::cout
<< "DEPRECATED: Use the 'ign gazebo' command line tool."
<< std::endl
<< std::endl
<< "ign-gazebo-server -- Run the Gazebo server (headless mode)." << std::endl
<< std::endl
<< "`ign-gazebo-server` [options]" << std::endl
Expand Down Expand Up @@ -183,6 +186,8 @@ int main(int _argc, char **_argv)

// Set verbosity
ignition::common::Console::SetVerbosity(FLAGS_verbose);
ignerr << "The ign-gazebo-server tool is deprecated, and is replaced by "
<< "`ign gazebo`\n";
ignmsg << "Ignition Gazebo Server v" << IGNITION_GAZEBO_VERSION_FULL
<< std::endl;

Expand Down

0 comments on commit 556bc2e

Please sign in to comment.