uplink handle invalid or more than needed arguments (#305)

* uplink handle invalid or more than needed arguments

* updated the error reporting
This commit is contained in:
aligeti 2018-09-05 12:46:48 -04:00 committed by GitHub
parent 83df0ee1b0
commit 2686476364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,10 @@ func init() {
}
func cmdRun(cmd *cobra.Command, args []string) (err error) {
if len(args) > 0x00 {
fmt.Println("Invalid arguments. Rerun with 'uplink run'")
return nil
}
return runCfg.Run(process.Ctx(cmd))
}