Skip to content

Commit

Permalink
fix: meta file parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ikey4u committed Jun 6, 2021
1 parent b688350 commit 0943783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl MDXMeta {
fn to_string(&self) -> String {
let indent = " ";
return format!(
"(\n{}\"title\": \"{}\",\n{}\"author\": \"{}\",\n{}\"description\": \"{}\",\n)",
"(\n{}title: \"{}\",\n{}author: \"{}\",\n{}description: \"{}\",\n)",
indent, &self.title,
indent, &self.author,
indent, &self.description
Expand Down Expand Up @@ -73,7 +73,7 @@ async fn main() -> AnyResult<()> {
let matches = App::new("wikit")
.setting(AppSettings::ArgRequiredElseHelp)
.setting(AppSettings::ColoredHelp)
.version("0.1.1")
.version("0.1.2")
.author("ikey4u <pwnkeeper@gmail.com>")
.about("A universal dictionary - Wikit")
.subcommand(
Expand Down Expand Up @@ -107,7 +107,7 @@ async fn main() -> AnyResult<()> {
).as_str()
)
.long("--meta")
.takes_value(false)
.takes_value(true)
)
.arg(Arg::with_name("output")
.help("Same with <input>")
Expand Down

0 comments on commit 0943783

Please sign in to comment.