projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
17840: Check for unparsed command line arguments.
[arvados.git]
/
lib
/
crunchrun
/
crunchrun.go
diff --git
a/lib/crunchrun/crunchrun.go
b/lib/crunchrun/crunchrun.go
index 8f3a30203911187c28b71c405a92caac8cab14e5..a5e69387ec5d877bf0f5320c9eb7d921bacbc8e4 100644
(file)
--- a/
lib/crunchrun/crunchrun.go
+++ b/
lib/crunchrun/crunchrun.go
@@
-1699,6
+1699,10
@@
func (command) RunCommand(prog string, args []string, stdin io.Reader, stdout, s
} else if err != nil {
log.Print(err)
return 1
+ } else if flags.NArg() != 1 {
+ fmt.Fprintf(flags.Output(), "Usage: %s [options] containerUUID\n\nOptions:\n", prog)
+ flags.PrintDefaults()
+ return 2
}
containerUUID := flags.Arg(0)