Skip to content

Commit e7fce9a

Browse files
committed
Formatting
1 parent 567aabd commit e7fce9a

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
## Caesium Command Line Tools
1+
# Caesium Command Line Tools [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/Lymphatus)
22

3-
[![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/Lymphatus)
43
[![Test](https://github.com/Lymphatus/caesium-clt/workflows/Test/badge.svg)](https://github.com/Lymphatus/caesium-clt/actions?query=workflow%3ATest)
54
[![Clippy](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yml/badge.svg)](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yml)
65
[![Code formatting](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yml/badge.svg)](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yml)
76

87
v1.0.0-beta.0
98

10-
### Development
9+
## Development
1110

12-
#### Requirements
11+
### Requirements
1312

1413
* [Rust](https://www.rust-lang.org/tools/install) >= 1.79.0
1514

16-
#### Build
15+
### Build
1716

1817
`cargo build --release`
1918

20-
### Usage
19+
## Usage
2120

2221
See full usage docs [here](docs/USAGE.md).
2322

24-
#### Examples
23+
### Examples
2524

2625
Losslessly compress ```image1.jpg```, located in the ```home``` directory, into a folder called ```output```
2726

docs/USAGE.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,62 @@
44

55
##### Compression (at least one is required)
66

7-
- -q, --quality <QUALITY>
7+
- `-q, --quality <QUALITY>`
88
Sets compression quality between 0 and 100. Higher the value, better the quality and bigger the file size.
9-
- --lossless
9+
- `--lossless`
1010
Perform lossless compression. Some file formats may not support this or result in bigger file sizes.
11-
- --max-size <MAX_SIZE>
11+
- `--max-size <MAX_SIZE>`
1212
Attempts to compress the image to the nearest size in bytes without exceeding it. If the requested size is too small,
1313
it will output the smallest possible result.
1414

1515
##### Advanced compression
1616

17-
- --png-opt-level <PNG_OPT_LEVEL>
17+
- `--png-opt-level <PNG_OPT_LEVEL>`
1818
Sets the optimization level for PNG files. Higher values result in better compression but take longer to complete.
1919
Possible values are between 0 and 6. Default is 3.
20-
- --zopfli
20+
- `--zopfli`
2121
Use zopfli when optimizing PNG files. It may take a very long time to complete, especially if the application is not
2222
build in release mode.
2323

2424
##### Metadata
2525

26-
- -e, --exif
26+
- `-e, --exif`
2727
Keeps EXIF metadata info during compression, if present. This can slightly increase the output file size.
28-
- --keep-dates
28+
- `--keep-dates`
2929
Keeps the original last modified and last accessed date information, if possible.
3030

3131
##### Resizing
3232

33-
- --width <WIDTH>
33+
- `--width <WIDTH>`
3434
Sets the width of the output image. If height is not set, it will preserve the aspect ratio. Can't be used with
3535
`--long-edge` or `--short-edge`.
36-
- --height <HEIGHT>
36+
- `--height <HEIGHT>`
3737
Sets the height of the output image. If width is not set, it will preserve the aspect ratio. Can't be used with
3838
`--long-edge` or `--short-edge`.
39-
- --long-edge <LONG_EDGE>
39+
- `--long-edge <LONG_EDGE>`
4040
Sets the size of the longest edge of the image. It is aware of rotation metadata. Can't be used with `--width` or
4141
`--height` or `--short-edge`.
42-
- --short-edge <SHORT_EDGE>
42+
- `--short-edge <SHORT_EDGE>`
4343
Sets the size of the shortest edge of the image. It is aware of rotation metadata. Can't be used with `--width` or
4444
`--height` or `--long-edge`.
4545

4646
##### Destination
4747

48-
- -o, --output <OUTPUT>
48+
- `-o, --output <OUTPUT>`
4949
Sets the output folder. If the folder does not exist, it will be created. Can't be used with `--same-folder-as-input`.
50-
- --same-folder-as-input
50+
- `--same-folder-as-input`
5151
Sets the output folder to be the same as the input folder. WARNING: this can potentially overwrite the original files
5252
if a suffix is not set. Overwritten files CANNOT be recovered.
53-
- --suffix <SUFFIX>
53+
- `--suffix <SUFFIX>`
5454
Adds a suffix to the output filename, before the file extension.
55-
- -S, --keep-structure
55+
- `-S, --keep-structure`
5656
Preserves the folder tree structure of the input files. Can be used only with `-R`.
57-
- -o, --overwrite <OVERWRITE>
57+
- `-o, --overwrite <OVERWRITE>`
5858
Sets the overwrite policy if the output file already exists. Possible values are:
5959
- `all`: Always overwrite
6060
- `never`: Never overwrite
6161
- `bigger`: Overwrite only if the file to be overwritten is bigger
62-
- --format <FORMAT>
62+
- `--format <FORMAT>`
6363
Converts the original image to the selected format. Possible values are:
6464
- `jpeg`
6565
- `png`
@@ -69,24 +69,24 @@
6969

7070
##### Other
7171

72-
- -R, --recursive
72+
- `-R, --recursive`
7373
If the input is a folder, scan its subfolders too.
74-
- -d, --dry-run
74+
- `-d, --dry-run`
7575
Do not write output files, only simulate the process.
76-
- --threads <THREADS>
76+
- `--threads <THREADS>`
7777
Specify the number of parallel jobs. The maximum is the number of processors available. `0` means that the application
7878
will try to guess the maximum number of parallel jobs available. Default is `0`.
79-
- -Q, --quiet
79+
- `-Q, --quiet`
8080
Suppress all output. Overrides `--verbose`.
81-
- --verbose <VERBOSE>
81+
- `--verbose <VERBOSE>`
8282
Select how much output you want to see. Possible values are:
8383
- `quiet`: Suppress all output
8484
- `progress`: Show only progress and final results
8585
- `warnings-and-errors`: Show also skipped and error messages
8686
- `all`: Print all
87-
- -h, --help
87+
- `-h, --help`
8888
Print help. A summary can be seen with `-h`.
89-
- -V, --version
89+
- `-V, --version`
9090
Print version.
9191

9292
### Full help

0 commit comments

Comments
 (0)