diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-06-09 03:00:38 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-06-09 03:00:38 -0400 |
commit | 9b749b946412b6f3d18c5d7997dc798f3947bb1e (patch) | |
tree | 798983aad1cddc135f5551c43691c9cb5bd3fce8 /src/conf.rs | |
parent | 1e6f1de062771a59d45acd3f7c123c10285b2f3e (diff) | |
download | clinte-9b749b946412b6f3d18c5d7997dc798f3947bb1e.tar.gz |
configurable line wrapping (80 default)
disabled when set to a value below 10
Diffstat (limited to 'src/conf.rs')
-rw-r--r-- | src/conf.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conf.rs b/src/conf.rs index 2a26a92..c392621 100644 --- a/src/conf.rs +++ b/src/conf.rs @@ -16,6 +16,14 @@ fn get_config() -> clap::ArgMatches<'static> { .long("verbose") .help("Verbose logging"), ) + .arg( + Arg::with_name("line") + .short("l") + .long("line") + .value_name("LENGTH") + .takes_value(true) + .help("Line length (default: 80; a value <10 disables wrapping)"), + ) .subcommand(clap::SubCommand::with_name("post").about("Post a new notice")) .subcommand( clap::SubCommand::with_name("update") |