Skip to content

[CLI] Convert some options as argument - #12278

Draft
BluNfa wants to merge 1 commit into
Scille:masterfrom
BluNfa:8556-options_to_argument
Draft

[CLI] Convert some options as argument#12278
BluNfa wants to merge 1 commit into
Scille:masterfrom
BluNfa:8556-options_to_argument

Conversation

@BluNfa

@BluNfa BluNfa commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Closes #8556

Directly pass device id instead of device option in device remove command.
Directly pass the org-id instead of organization-id option in organization stats command.
Directly pass the org-id instead of organization-id option in organization status command.
Directly pass import path instead of input option in device import-recovery-device command.

The other options from #8556 seems already converted to arguments.

PR is in draft because, for the device option in device remove command, the help output is different from the other ones:

Remove device

Usage: parsec-cli device remove [OPTIONS] [DEVICE]

Arguments:
  [DEVICE]  Short id of the device to remove

Options: [...]

DEVICE is between [ ], and not between < > like the arguments in other commands, and I fail to understand why. Export recovery device help command for reference :

Export recovery device

Usage: parsec-cli device export-recovery-device [OPTIONS] <OUTPUT>

Arguments:
  <OUTPUT>  Path where to save recovery device data

Options: [...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CLI] Convert some options as argument

1 participant