colima icon indicating copy to clipboard operation
colima copied to clipboard

Add --cpus flag as an alias for --cpu to align with lima

Open SmartManoj opened this issue 1 year ago • 2 comments

Adds support for the --cpus flag in the start command, functioning as an alias for the --cpu flag.

  • Introduces a new CLI flag --cpus in cmd/start.go, allowing users to specify the number of CPUs. This flag behaves identically to the existing --cpu flag.
  • Ensures that both --cpu and --cpus flags are parsed and handled equivalently, maintaining backward compatibility and user flexibility in specifying CPU resources.

Lima docs

For more details, open the Copilot Workspace session.

SmartManoj avatar Jul 02 '24 04:07 SmartManoj

Thanks for this. However, the implementation is not yet complete.

abiosoft avatar Jul 03 '24 05:07 abiosoft

  • Ensures that both --cpu and --cpus flags are parsed and handled equivalently, maintaining backward compatibility and user flexibility in specifying CPU resources.

You meant this?

SmartManoj avatar Jul 03 '24 11:07 SmartManoj

This has been added https://github.com/abiosoft/colima/pull/1352/commits/640f439c0ca49864f08572c35bdebc244f3121b0.

abiosoft avatar Jul 31 '25 07:07 abiosoft