Skip to content

Commit 2999be4

Browse files
authored
Re-add version flag (#1351)
2 parents 1a99fcf + 985edff commit 2999be4

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

crates/engine_bibtex/src/bst.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ fn bst_read_command(
557557
let &cite = globals.hash.get(cite_loc).extra();
558558
let mut parent =
559559
cite * globals.other.num_fields() + globals.other.pre_defined_fields();
560+
561+
#[allow(clippy::explicit_counter_loop)]
560562
for idx in (field_start + globals.other.pre_defined_fields())
561563
..(field_start + globals.other.num_fields())
562564
{

src/bin/tectonic/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mod v2cli {
3838
}
3939

4040
#[derive(Debug, Parser)]
41-
#[command(name = "Tectonic", about = "Process a (La)TeX document")]
41+
#[command(name = "Tectonic", version, about = "Process a (La)TeX document")]
4242
struct CliOptions {
4343
/// Use experimental V2 interface (see `tectonic -X --help`)
4444
#[arg(short = 'X')]

src/bin/tectonic/v2cli/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ mod commands;
3131
#[derive(Debug, Parser)]
3232
#[command(
3333
name = "tectonic -X",
34+
version,
3435
about = "Process (La)TeX documents",
3536
no_binary_name(true)
3637
)]

0 commit comments

Comments
 (0)