diff options
author | Vadim Mikhailov <mvp@users.noreply.github.com> | 2019-09-02 22:56:59 -0700 |
---|---|---|
committer | Vadim Mikhailov <mvp@users.noreply.github.com> | 2019-09-02 23:09:56 -0700 |
commit | 1856ae9d59bd0374e13baa916d5e9abdb1f3f971 (patch) | |
tree | 9cab246da2b04c490d45c30097f3e0d573071308 | |
parent | 2b9b33603877076aca2d67993c7878ff8c8438d1 (diff) |
Use --location for long option name
Add --location as long option name - it is still backwards compatible with --loc.
-rw-r--r-- | uhubctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -217,7 +217,7 @@ static int opt_exact = 0; /* exact location match - disable USB3 duality handl static int opt_reset = 0; /* reset hub after operation(s) */ static const struct option long_options[] = { - { "loc", required_argument, NULL, 'l' }, + { "location", required_argument, NULL, 'l' }, { "vendor", required_argument, NULL, 'n' }, { "level", required_argument, NULL, 'L' }, { "ports", required_argument, NULL, 'p' }, @@ -243,7 +243,7 @@ static int print_usage() "Options [defaults in brackets]:\n" "--action, -a - action to off/on/cycle (0/1/2) for affected ports.\n" "--ports, -p - ports to operate on [all hub ports].\n" - "--loc, -l - limit hub by location [all smart hubs].\n" + "--location, -l - limit hub by location [all smart hubs].\n" "--level -L - limit hub by location level (e.g. a-b.c is level 3).\n" "--vendor, -n - limit hub by vendor id [%s] (partial ok).\n" "--delay, -d - delay for cycle action [%g sec].\n" |