mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
Make command line options consistent (#4243)
This commit is contained in:
parent
60849355db
commit
cef3f220a2
|
@ -72,12 +72,12 @@ use url::Url;
|
||||||
long_about = "A link aggregator for the fediverse.\n\nThis is the Lemmy backend API server. This will connect to a PostgreSQL database, run any pending migrations and start accepting API requests."
|
long_about = "A link aggregator for the fediverse.\n\nThis is the Lemmy backend API server. This will connect to a PostgreSQL database, run any pending migrations and start accepting API requests."
|
||||||
)]
|
)]
|
||||||
pub struct CmdArgs {
|
pub struct CmdArgs {
|
||||||
#[arg(long, default_value_t = false)]
|
|
||||||
/// Disables running scheduled tasks.
|
/// Disables running scheduled tasks.
|
||||||
///
|
///
|
||||||
/// If you are running multiple Lemmy server processes,
|
/// If you are running multiple Lemmy server processes,
|
||||||
/// you probably want to disable scheduled tasks on all but one of the processes,
|
/// you probably want to disable scheduled tasks on all but one of the processes,
|
||||||
/// to avoid running the tasks more often than intended.
|
/// to avoid running the tasks more often than intended.
|
||||||
|
#[arg(long, default_value_t = false, action=ArgAction::Set)]
|
||||||
disable_scheduled_tasks: bool,
|
disable_scheduled_tasks: bool,
|
||||||
/// Whether or not to run the HTTP server.
|
/// Whether or not to run the HTTP server.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue