mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 13:21:11 +00:00
Update lib.rs
This commit is contained in:
parent
0443bcda96
commit
ab8c7d8289
1 changed files with 0 additions and 2 deletions
|
@ -70,7 +70,6 @@ use url::Url;
|
||||||
about = "A link aggregator for the fediverse",
|
about = "A link aggregator for the fediverse",
|
||||||
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."
|
||||||
)]
|
)]
|
||||||
#[command(args_conflicts_with_subcommands = true)]
|
|
||||||
// TODO: Instead of defining individual env vars, only specify prefix once supported by clap.
|
// TODO: Instead of defining individual env vars, only specify prefix once supported by clap.
|
||||||
// https://github.com/clap-rs/clap/issues/3221
|
// https://github.com/clap-rs/clap/issues/3221
|
||||||
pub struct CmdArgs {
|
pub struct CmdArgs {
|
||||||
|
@ -113,7 +112,6 @@ pub struct CmdArgs {
|
||||||
#[derive(Subcommand, Debug)]
|
#[derive(Subcommand, Debug)]
|
||||||
enum CmdSubcommand {
|
enum CmdSubcommand {
|
||||||
/// Do something with migrations, then exit.
|
/// Do something with migrations, then exit.
|
||||||
#[command(args_conflicts_with_subcommands = false)]
|
|
||||||
Migration {
|
Migration {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
subcommand: MigrationSubcommand,
|
subcommand: MigrationSubcommand,
|
||||||
|
|
Loading…
Reference in a new issue