From 15c8e26a916fc9c949a06ce75949ca8ac2fb08a8 Mon Sep 17 00:00:00 2001 From: Charlie Turner Date: Thu, 6 Sep 2018 11:12:50 +0100 Subject: flatpak-coredumpctl: -b option ignored the argument. Due to a typo, the -b option was not placing the passed build directory into the CoreDumper class. Closes: #2076 Approved by: alexlarsson --- scripts/flatpak-coredumpctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/flatpak-coredumpctl b/scripts/flatpak-coredumpctl index ec0080cf..eb85301e 100755 --- a/scripts/flatpak-coredumpctl +++ b/scripts/flatpak-coredumpctl @@ -18,7 +18,7 @@ class CoreDumper(): def clean_args(self): if not self.build_directory and not self.app: - print("Either `--build-dir` or `APP` must be specified.", + print("Either `--build-directory` or `APP` must be specified.", file=sys.stderr) return False @@ -62,7 +62,7 @@ if __name__ == "__main__": parser = argparse.ArgumentParser( "Debug in gdb an application that crashed inside flatpak." " It uses (and thus requires) coredumpctl to retrieve the coredump file.") - parser.add_argument('-b', '--build-dir', default=None, + parser.add_argument('-b', '--build-directory', default=None, help="The build directory to use. It allows you to retrieve a coredump" " for applications being built") parser.add_argument('--extra-flatpak-args', default="", -- cgit v1.2.1