Skip to content

Commit c6c4d3e

Browse files
Merge pull request #585 from andreilorin/master
fix #582
2 parents 74389dd + 146d280 commit c6c4d3e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

templates/what/cli/code-inputs.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ struct Cli {
55
file: String,
66
/// Number of lines to read
77
#[structopt(short = "n")]
8-
num: i32,
8+
num: usize,
99
}

templates/what/cli/code-main.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use quicli::prelude::*;
2+
use structopt::StructOpt;
23

34
fn main() -> CliResult {
4-
let args = Cli::from_args()?:
5+
let args = Cli::from_args()?;
56
read_file(&args.file)?
67
.lines()
78
.take(args.count)

0 commit comments

Comments
 (0)