integration/images/volume-ownership: strip path information from usage output

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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-01-31 12:35:55 +01:00
parent b8cadf7539
commit e79aba10d4
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -26,7 +26,7 @@ import (
func main() { func main() {
if len(os.Args) != 2 { 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) os.Exit(1)
} }