Skip to content

Commit b1e6015

Browse files
committed
feat(cli): add --device as an alias for --gpu
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 1e12357 commit b1e6015

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/openshell-cli/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ enum GatewayCommands {
788788
/// `nvidia.com/gpu` resources. Requires NVIDIA drivers and the
789789
/// NVIDIA Container Toolkit on the host.
790790
///
791-
/// An optional argument controls the injection mode:
791+
/// An optional argument controls the injection mode (`--device` is an alias):
792792
///
793793
/// --gpu Auto-select: CDI on Docker >= 28.2.0, legacy otherwise
794794
/// --gpu=legacy Force legacy nvidia DeviceRequest (specify once only)
@@ -797,6 +797,7 @@ enum GatewayCommands {
797797
/// Example CDI device names: `nvidia.com/gpu=all`, `nvidia.com/gpu=0`
798798
#[arg(
799799
long = "gpu",
800+
alias = "device",
800801
num_args = 0..=1,
801802
default_missing_value = "auto",
802803
action = clap::ArgAction::Append,

0 commit comments

Comments
 (0)