Files
revive/crates
LJ f5fe3faa71 Add default values to compiler arguments (#451)
## Description

Adds default values to the compiler arguments below when parsed by
`clap`. This does not change previous user-facing behavior as these
defaults were implemented using different logic, but improves the UX and
the visibility of the exact defaults used.

**Example output from `resolc --help`:**
(Only affected arguments are shown here, and some of their descriptions
have been omitted here.)
```
Options:

  -O, --optimization <OPTIMIZATION>
          Set the optimization parameter -O[0 | 1 | 2 | 3 | s | z]. Use `3` for best performance and `z` for minimal size
          
          [default: z]

      --metadata-hash <METADATA_HASH>
          Set the metadata hash type. Available types: `none`, `ipfs`, `keccak256`
          
          [default: keccak256]

      --heap-size <HEAP_SIZE>
          The emulated EVM linear heap memory static buffer size in bytes.
          ...
          
          [default: 131072]

      --stack-size <STACK_SIZE>
          The contracts total stack size in bytes.
          ...
          
          [default: 131072]
```

## Resolved Issues

Closes #446
2026-01-14 19:22:03 +01:00
..
2026-01-08 11:45:11 +01:00
2025-10-06 09:12:34 +02:00
2026-01-08 11:45:11 +01:00
2026-01-08 11:45:11 +01:00
2026-01-08 11:45:11 +01:00
2025-03-01 13:49:04 +01:00
2026-01-08 11:45:11 +01:00
2026-01-08 11:45:11 +01:00
2026-01-08 11:45:11 +01:00
2026-01-08 11:45:11 +01:00
2025-10-06 09:12:34 +02:00
2026-01-08 11:45:11 +01:00