We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74389dd + 146d280 commit c6c4d3eCopy full SHA for c6c4d3e
templates/what/cli/code-inputs.hbs
@@ -5,5 +5,5 @@ struct Cli {
5
file: String,
6
/// Number of lines to read
7
#[structopt(short = "n")]
8
- num: i32,
+ num: usize,
9
}
templates/what/cli/code-main.hbs
@@ -1,7 +1,8 @@
1
use quicli::prelude::*;
2
+use structopt::StructOpt;
3
4
fn main() -> CliResult {
- let args = Cli::from_args()?:
+ let args = Cli::from_args()?;
read_file(&args.file)?
.lines()
.take(args.count)
0 commit comments