From e79aba10d4c6c4eadd7dcc672a3d0d15e62b9969 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 31 Jan 2022 12:35:55 +0100 Subject: [PATCH] integration/images/volume-ownership: strip path information from usage output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit POSIX guidelines describes; https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html#g_t_002d_002dversion > The program’s name should be a constant string; don’t compute it from argv[0]. > The idea is to state the standard or canonical name for the program, not its > file name. We don't have a const for this, but let's make a start and just remove the path info. Signed-off-by: Sebastiaan van Stijn --- integration/images/volume-ownership/tools/get_owner_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/images/volume-ownership/tools/get_owner_windows.go b/integration/images/volume-ownership/tools/get_owner_windows.go index 04322893e..b7870cd9a 100644 --- a/integration/images/volume-ownership/tools/get_owner_windows.go +++ b/integration/images/volume-ownership/tools/get_owner_windows.go @@ -26,7 +26,7 @@ import ( func main() { if len(os.Args) != 2 { - fmt.Printf("Usage: %s file_or_directory\n", os.Args[0]) + fmt.Println("Usage: get_owner_windows.exe file_or_directory") os.Exit(1) }