core/command: rename --instance to --id and --info to --show

Fixes conflicting short flags.
This commit is contained in:
outfoxxed 2024-09-17 14:04:54 -07:00
parent c57ac4b1f2
commit 7a283089b1
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 4 additions and 4 deletions

View file

@ -267,7 +267,7 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) {
auto addInstanceSelection = [&](CLI::App* cmd) {
auto* group = cmd->add_option_group("Instance Selection");
group->add_option("-i,--instance", state.instance.id)
group->add_option("-i,--id", state.instance.id)
->description("The instance id to operate on.\n"
"You may also use a substring the id as long as it is unique,\n"
"for example \"abc\" will select \"abcdefg\".");
@ -360,7 +360,7 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) {
->needs(function)
->allow_extra_args();
sub->add_flag("-i,--info", state.ipc.info)
sub->add_flag("-s,--show", state.ipc.info)
->description("Print information about a function or target if given, or all available "
"targets if not.")
->excludes(arguments);

View file

@ -112,9 +112,9 @@ class IpcHandlerRegistry;
/// }
/// }
/// ```
/// The list of registered targets can be inspected using `qs msg -i`.
/// The list of registered targets can be inspected using `qs msg -s`.
/// ```sh
/// $ qs msg -i
/// $ qs msg -s
/// target rect
/// function setColor(color: color): void
/// function getColor(): color