Closed Andrew15-5 closed 2 months ago
I find this flag confusing too. When trying to disable hot-reload, it throws an error:
> dx serve --hot-reload false
error: unexpected argument 'false' found
Usage: dx.exe serve [OPTIONS] [-- <CARGO_ARGS>...]
For more information, try '--help'.
It seems impossible to disable hot reload with serve.
@ealmloff Hey there! I have recently learnt about rust and would like to contribute to the issue.
clap
already adds default value if value can be set and omitted:
After compiling:
Problem
It should say
true
. But how would you disable it? Can you pass in true/false? Maybe there should be a--no-hot-reload
option instead.Steps To Reproduce
Steps to reproduce the behavior:
dx -h
Expected behavior
The message should say
true
.Environment:
Questionnaire