diff options
Diffstat (limited to 'src/opt.rs')
-rw-r--r-- | src/opt.rs | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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. |