Skip to content

Commit

Permalink
Fix --sort-fields CLI output (#404)
Browse files Browse the repository at this point in the history
Fix small CLI output error for what should be --sort-fields, not --sort_fields.
  • Loading branch information
TobiKattmann authored Mar 24, 2023
1 parent 7b4f96c commit c0f2d80
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bibtex-tidy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/bibtex-tidy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/optionDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const optionDefinitions: OptionDefinition[] = [
toCLI: (val) => {
if (Array.isArray(val) && val.length > 0) {
if (JSON.stringify(val) === JSON.stringify(DEFAULT_FIELD_SORT)) {
return '--sort_fields';
return '--sort-fields';
}
return `--sort-fields=${val.join(',')}`;
}
Expand Down

0 comments on commit c0f2d80

Please sign in to comment.