summaryrefslogtreecommitdiff
path: root/src/opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/opt.rs')
-rw-r--r--src/opt.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/opt.rs b/src/opt.rs
index 5455777..4e6f46d 100644
--- a/src/opt.rs
+++ b/src/opt.rs
@@ -64,6 +64,18 @@ pub enum SubCommand {
New {
#[structopt(help = "Title of new draft")]
title: String,
+
+ #[structopt(long, help = "Add link to a topic page")]
+ topic: Option<PathBuf>,
+ },
+
+ /// Create topic page.
+ NewTopic {
+ #[structopt(help = "Path to topic page in journal")]
+ path: PathBuf,
+
+ #[structopt(help = "Title of topic page")]
+ title: String,
},
/// Invoke editor on journal entry draft.