summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Richter <evanjrichter@gmail.com>2024-04-29 10:16:13 -0600
committerEvan Richter <evanjrichter@gmail.com>2024-04-29 10:16:13 -0600
commita739671c0b33d688c12524e681d95001b54d0962 (patch)
tree3861c15194d1bec2f9f1ad4776ed65e4366b8213
parentb832e3b2f7f548c867ca57b09efb394f82615df0 (diff)
add short arg parsers to device add command
Without the single char (with ':' if optarg expected) only the long argument string would successfully parse. For example, now "-lasdf" parses the same as "--label asdf"
-rw-r--r--c_src/cmd_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/cmd_device.c b/c_src/cmd_device.c
index 1fffc01d..c86fb7f1 100644
--- a/c_src/cmd_device.c
+++ b/c_src/cmd_device.c
@@ -74,7 +74,7 @@ int cmd_device_add(int argc, char *argv[])
bool force = false;
int opt;
- while ((opt = getopt_long(argc, argv, "fh",
+ while ((opt = getopt_long(argc, argv, "S:B:Dl:fh",
longopts, NULL)) != -1)
switch (opt) {
case 'S':