File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,6 @@ enum CommandLine {
101
101
102
102
/// Starts the daemon
103
103
Daemon {
104
- /// Deprecated. Run the server in the foreground instead of detaching a child
105
- #[ structopt( name = "FOREGROUND" , short = "f" , long = "foreground" ) ]
106
- foreground : bool ,
107
-
108
104
/// Enable or disable the registry watcher to automatically enqueue newly published crates
109
105
#[ structopt(
110
106
long = "registry-watcher" ,
@@ -140,14 +136,7 @@ impl CommandLine {
140
136
// Blocks indefinitely
141
137
let _ = Server :: start ( Some ( & socket_addr) , reload_templates, & ctx) ?;
142
138
}
143
- Self :: Daemon {
144
- foreground,
145
- registry_watcher,
146
- } => {
147
- if foreground {
148
- log:: warn!( "--foreground was passed, but there is no need for it anymore" ) ;
149
- }
150
-
139
+ Self :: Daemon { registry_watcher } => {
151
140
docs_rs:: utils:: start_daemon ( & ctx, registry_watcher == Toggle :: Enabled ) ?;
152
141
}
153
142
Self :: Database { subcommand } => subcommand. handle_args ( ctx) ?,
You can’t perform that action at this time.
0 commit comments