diff options
Diffstat (limited to 'src/args.rs')
| -rw-r--r-- | src/args.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs new file mode 100644 index 0000000..415d816 --- /dev/null +++ b/src/args.rs @@ -0,0 +1,16 @@ +use clap::{Parser, Subcommand}; + +/// Simple bookmarks manager written in Rust +#[derive(Debug, Parser)] +#[command(version, about, long_about = None)] +pub struct Cli { + #[command(subcommand)] + pub command: Command, +} + +#[derive(Debug, Subcommand)] +pub enum Command { + /// Start the web server to serve the bookmarks page + #[command(name = "serv")] + Serv, +} |
