Skip to content

Infer -w when --watchDirectory is supplied? #539

Open
@guiprav

Description

@guiprav

Hello. This bit me at least 3 times already. I use Forever mostly to restart when files change, so I forget I must explicitly supply -w / --watch. So far, that's solely my fault. However, this can be especially confusing when you do supply --watchDirectory but forget to supply -w. Result: Forever just silently ignores --watchDirectory.

So I propose that:

a) When --watchDirectory is supplied, --watch is turned on by default.
b) When --watchDirectory is supplied but not --watch, log an error and exit.
c) When --watchDirectory is supplied but not --watch, at least show a warning on startup.

I might implement one of those and send a pull request if other people agree either one is a good idea.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions