cli: Ensure all no argument console messages are the same. (#26331)

Use a constant to ensure consistency across the CLI when displaying
a console message indicating the command was passed arguments when
it takes none.
This commit is contained in:
James Rasell
2025-07-25 08:05:10 +02:00
committed by GitHub
parent ccaa3b7325
commit 2ef837f02f
45 changed files with 48 additions and 44 deletions

View File

@@ -326,7 +326,7 @@ func TestDebug_Failures(t *testing.T) {
name: "fails incorrect args",
args: []string{"some", "bad", "args"},
expectedCode: 1,
expectedError: "This command takes no arguments",
expectedError: uiMessageNoArguments,
},
{
name: "Fails illegal node ids",