瀏覽代碼

Use the right name

master
Dylan Baker 6 年之前
父節點
當前提交
a30fde53e2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/cli.rs

+ 1
- 1
src/cli.rs 查看文件

6
 
6
 
7
 pub fn new_gist(matches: &ArgMatches) -> io::Result<()> {
7
 pub fn new_gist(matches: &ArgMatches) -> io::Result<()> {
8
     let title = matches.value_of("title").unwrap();
8
     let title = matches.value_of("title").unwrap();
9
-    let input = matches.value_of("input");
9
+    let input = matches.value_of("file");
10
     let filetype = matches.value_of("filetype");
10
     let filetype = matches.value_of("filetype");
11
 
11
 
12
     let mut rdr: Box<io::Read> = match input {
12
     let mut rdr: Box<io::Read> = match input {

Loading…
取消
儲存