Skip to content

Commit 1636527

Browse files
committed
Remove unused foreground argument
1 parent 78e2992 commit 1636527

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/bin/cratesfyi.rs

+1-12
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ enum CommandLine {
101101

102102
/// Starts the daemon
103103
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-
108104
/// Enable or disable the registry watcher to automatically enqueue newly published crates
109105
#[structopt(
110106
long = "registry-watcher",
@@ -140,14 +136,7 @@ impl CommandLine {
140136
// Blocks indefinitely
141137
let _ = Server::start(Some(&socket_addr), reload_templates, &ctx)?;
142138
}
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 } => {
151140
docs_rs::utils::start_daemon(&ctx, registry_watcher == Toggle::Enabled)?;
152141
}
153142
Self::Database { subcommand } => subcommand.handle_args(ctx)?,

0 commit comments

Comments
 (0)