diff --git a/cli/update/update.go b/cli/update/update.go index 42b6280ba93..f4245fea9b6 100644 --- a/cli/update/update.go +++ b/cli/update/update.go @@ -42,7 +42,7 @@ func NewCommand() *cobra.Command { Args: cobra.NoArgs, Run: runUpdateCommand, } - updateCommand.Flags().BoolVar(&updateFlags.showOutdated, "outdated", false, "Show outdated cores and libraries after index update") + updateCommand.Flags().BoolVar(&updateFlags.showOutdated, "show-outdated", false, "Show outdated cores and libraries after index update") return updateCommand } diff --git a/test/test_update.py b/test/test_update.py index 84b547e3784..d08580e7666 100644 --- a/test/test_update.py +++ b/test/test_update.py @@ -38,7 +38,7 @@ def test_update_showing_outdated(run_command): assert run_command("lib install ArduinoJson") # Verifies outdated cores and libraries are printed after updating indexes - result = run_command("update --outdated") + result = run_command("update --show-outdated") assert result.ok lines = [l.strip() for l in result.stdout.splitlines()]