Skip to content

Commit

Permalink
fix issues in man page generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Oct 9, 2023
1 parent aec1923 commit a548827
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions doc/xh.1
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ Set output formatting options. Supported option are:
json.format:<true|false>
headers.sort:<true|false>

Example: \-\-format\-options=json.indent:2,headers.sort:false
.
Example: \-\-format\-options=json.indent:2,headers.sort:false.
.TP 4
\fB\-s\fR, \fB\-\-style\fR=\fITHEME\fR
Output coloring style.
Expand Down
5 changes: 2 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ Set output formatting options. Supported option are:
json.format:<true|false>
headers.sort:<true|false>
Example: --format-options=json.indent:2,headers.sort:false
"
Example: --format-options=json.indent:2,headers.sort:false"
)]
pub format_options: Vec<FormatOptions>,

Expand Down Expand Up @@ -846,7 +845,7 @@ fn generate_manpages(mut app: clap::Command, rest_args: Vec<String>) -> clap::er

let current_date = {
let (year, month, day) = DateTime::now_utc().date().to_calendar_date();
format!("{}-{:02}-{:02}", year, month, day)
format!("{}-{:02}-{:02}", year, u8::from(month), day)
};

manpage = manpage.replace("{{date}}", &current_date);
Expand Down

0 comments on commit a548827

Please sign in to comment.