diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-14 11:45:01 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-15 08:50:45 +0100 |
commit | b1e8f46c318d88df8e0939e6cf2428ba4c343957 (patch) | |
tree | 89c247b1baca24664887a77b9ce55d04ec38887a /src/busctl | |
parent | Move and rename parse_path_argument() function (diff) | |
download | systemd-b1e8f46c318d88df8e0939e6cf2428ba4c343957.tar.xz systemd-b1e8f46c318d88df8e0939e6cf2428ba4c343957.zip |
Move and rename parse_json_argument() function
json.[ch] is a very generic implementation, and cmdline argument parsing
doesn't fit there.
Diffstat (limited to 'src/busctl')
-rw-r--r-- | src/busctl/busctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c index 7774aeac7c..6a492ebd02 100644 --- a/src/busctl/busctl.c +++ b/src/busctl/busctl.c @@ -21,6 +21,7 @@ #include "log.h" #include "main-func.h" #include "pager.h" +#include "parse-argument.h" #include "parse-util.h" #include "path-util.h" #include "pretty-print.h" @@ -2523,7 +2524,7 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_JSON: - r = json_parse_cmdline_parameter_and_warn(optarg, &arg_json_format_flags); + r = parse_json_argument(optarg, &arg_json_format_flags); if (r <= 0) return r; |