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:
parent
83df0ee1b0
commit
2686476364
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user