The build sub-command should build the entire workspace when the [contract] arg isn't specified. Also, optimizing a single contract will instead optimize the whole workspace.
Technical Description
The default behavior of the cosmwasm/workspace-optimizer image is to build the entire workspace. However, when the user wants to optimize a single contract, the CLI should run the rust-optimizer image instead, with the contract path as an argument (as explained here).
Description
The
build
sub-command should build the entire workspace when the[contract]
arg isn't specified. Also, optimizing a single contract will instead optimize the whole workspace.Technical Description
The default behavior of the
cosmwasm/workspace-optimizer
image is to build the entire workspace. However, when the user wants to optimize a single contract, the CLI should run therust-optimizer
image instead, with the contract path as an argument (as explained here).