summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 11:34:16 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 11:56:50 +0530
commit6d82a724b0452e417e20cbe8a02e3bed647e9674 (patch)
treed9584c8db2c57ce98db6d9afb39c1824dad0b7e9 /src/options.rs
parent495ccbda25cb27dc912c07fbdb29651b83f32c68 (diff)
basic frame to support new interactive mode
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/options.rs b/src/options.rs
index 76c0abc..6d686c7 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -40,13 +40,20 @@ pub struct Args {
#[structopt(short = "f", long = "format")]
pub format: Option<ByteFormat>,
- /// One or more input files. If unset, we will use all entries in the current working directory.
+ /// One or more input files or directories. If unset, we will use all entries in the current working directory.
#[structopt(parse(from_os_str))]
pub input: Vec<PathBuf>,
}
#[derive(Debug, StructOpt)]
pub enum Command {
+ /// Launch the terminal user interface
+ #[structopt(name = "interactive", alias = "i")]
+ Interactive {
+ /// One or more input files or directories. If unset, we will use all entries in the current working directory.
+ #[structopt(parse(from_os_str))]
+ input: Vec<PathBuf>,
+ },
/// Aggregrate the consumed space of one or more directories or files
#[structopt(name = "aggregate", alias = "a")]
Aggregate {
@@ -60,7 +67,7 @@ pub enum Command {
/// If set, no total column will be computed for multiple inputs
#[structopt(long = "no-total")]
no_total: bool,
- /// One or more input files. If unset, we will use all entries in the current working directory.
+ /// One or more input files or directories. If unset, we will use all entries in the current working directory.
#[structopt(parse(from_os_str))]
input: Vec<PathBuf>,
},