Skip to content

Commit

Permalink
imp: add fish subcommand help support
Browse files Browse the repository at this point in the history
  • Loading branch information
peppsac committed Mar 17, 2017
1 parent b08d7d1 commit f8f68cf
Show file tree
Hide file tree
Showing 2 changed files with 568 additions and 565 deletions.
3 changes: 3 additions & 0 deletions src/completions/fish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ fn gen_fish_inner(root_command: &str, comp_gen: &FishGen, parent_cmds: &str, buf
let mut template = basic_template.clone();
template.push_str(" -f");
template.push_str(format!(" -a \"{}\"", &subcommand.p.meta.name).as_str());
if let Some(data) = subcommand.p.meta.about {
template.push_str(format!(" -d \"{}\"", &data).as_str())
}
buffer.push_str(template.as_str());
buffer.push_str("\n");
}
Expand Down
Loading

0 comments on commit f8f68cf

Please sign in to comment.