diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-08 18:32:13 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-08 18:44:24 +0100 |
commit | 8b019270a0fb90e801ca6d44cbb32e8340e371ea (patch) | |
tree | e0dd27fdfaa811733b536d1720bf6200b14f9f09 /gui/src/cli.rs | |
parent | cbdcf2228513e3f8ef87028bbabb802558039f30 (diff) |
Add passing of profile name to GUI bootup code
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'gui/src/cli.rs')
-rw-r--r-- | gui/src/cli.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/src/cli.rs b/gui/src/cli.rs index 6ebdfb9..bf81b45 100644 --- a/gui/src/cli.rs +++ b/gui/src/cli.rs @@ -8,5 +8,12 @@ pub fn app<'a>() -> App<'a> { .author(crate_authors!()) .version(crate_version!()) .about("Distributed social network, GUI frontend") + + .arg(Arg::new("name") + .index(1) + .takes_value(true) + .value_name("NAME") + .about("Profile to load the GUI for") + ) } |