diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-10-09 14:08:47 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-10-09 14:08:47 +0100 |
| commit | 50cf5960cb1f0af831e28eb08b15b97794287f87 (patch) | |
| tree | a7217fe0cfd4acfaf532a45a9c1333ed7432c30e /src/args.rs | |
| parent | 2735ef9f62453907e68d9a7e10b209b3239eb9e5 (diff) | |
✨feat: add serv subcommand using Clap
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, +} |
