summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2020-01-12 13:28:40 +0100
committerMinijackson <minijackson@riseup.net>2020-01-12 13:28:40 +0100
commit5d6f163000bf34d12ec9587b2d8572319d27607d (patch)
treeb6044c5c3a1e7f512404e2607ebc2ddbd4c89923 /src/cli.rs
parent19a0d9c2724695c9e05fe0b85bbbdf03ebeeec5b (diff)
downloadposeidoc-5d6f163000bf34d12ec9587b2d8572319d27607d.tar.gz
poseidoc-5d6f163000bf34d12ec9587b2d8572319d27607d.zip
clang: allow parse single file + parse typedefs
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 0000644..946ebc9 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -5,6 +5,7 @@ use structopt::StructOpt;
5use std::path::PathBuf; 5use std::path::PathBuf;
6 6
7#[derive(Debug, Clone, StructOpt)] 7#[derive(Debug, Clone, StructOpt)]
8#[structopt(setting = structopt::clap::AppSettings::ColoredHelp)]
8pub(crate) struct Cli { 9pub(crate) struct Cli {
9 #[structopt(long, short, parse(from_occurrences))] 10 #[structopt(long, short, parse(from_occurrences))]
10 pub(crate) verbosity: u8, 11 pub(crate) verbosity: u8,
@@ -22,9 +23,11 @@ pub(crate) struct Cli {
22#[derive(Debug, Clone, StructOpt)] 23#[derive(Debug, Clone, StructOpt)]
23pub(crate) enum Command { 24pub(crate) enum Command {
24 Generate { 25 Generate {
25 file: String, 26 file: Option<String>,
27 },
28 Inspect {
29 file: Option<String>,
26 }, 30 },
27 Inspect,
28 Config { 31 Config {
29 #[structopt(subcommand)] 32 #[structopt(subcommand)]
30 command: ConfigCommand, 33 command: ConfigCommand,