mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
throw an error if executing reload command without worker id
This commit is contained in:
parent
3e6e6f9b14
commit
96f11f57ed
@ -375,6 +375,11 @@ func cmdJob(cmd tunasync.CmdVerb) cli.ActionFunc {
|
||||
|
||||
func cmdWorker(cmd tunasync.CmdVerb) cli.ActionFunc {
|
||||
return func(c *cli.Context) error {
|
||||
|
||||
if c.String("worker") == "" {
|
||||
return cli.NewExitError("Please specify the worker with -w <worker-id>", 1)
|
||||
}
|
||||
|
||||
cmd := tunasync.ClientCmd{
|
||||
Cmd: cmd,
|
||||
WorkerID: c.String("worker"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user