Skip to content

Commit

Permalink
update minify doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zawwz committed Oct 29, 2021
1 parent 8916032 commit 6eb164f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ These commands can be placed anywhere within the script like regular commands.

Reduce code size to a minimum without changing functionality with the `-m` option.

> This option should be safe to use in any situation
> This option should be safe to use in any situation, if this option changes behavior please report a bug
#### Behaviors of the minify option

- removes any unnecessary separator character between arguments/commands
- removes `;;` from the last value in a case
- removes unnecessary quotes on arguments
- transforms unnecessary manipulations (e.g. `${VAR}`) into simple variable call
- Brace blocks or subshells with a single command will be replaced by said command
- brace blocks or subshells with a single command will be replaced by said command
- reduces level 1 `$()` subshells to use backticks
- escaped dollarsigns are un-escaped

> These features only apply if they won't change behavior, for instance
removal of an unnecessary manipulation will not be made if the following character
Expand Down

0 comments on commit 6eb164f

Please sign in to comment.