server/adm: Make --config/-f a global option

This commit is contained in:
Zhaofeng Li 2023-01-14 23:55:10 -07:00
parent 064a747bb4
commit 6d3d07cb14

View file

@ -15,7 +15,7 @@ use command::make_token::{self, MakeToken};
#[clap(propagate_version = true)]
pub struct Opts {
/// Path to the config file.
#[clap(short = 'f', long)]
#[clap(short = 'f', long, global = true)]
config: Option<PathBuf>,
/// The sub-command.