From fcbc8ce972e1a035c30e945c7e985beda841f809 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 11 May 2023 14:02:12 -0300 Subject: Remove dash before version on --help output Currently, --version doesn't print a dash while --help does. Example: $ firejail --version | grep 'version 0' firejail version 0.9.73 $ firejail --help | grep 'version 0' firejail - version 0.9.73 For consistency, always print the version without a dash. Commands used to search and replace: $ git grep -IFlz ' - version' -- src | xargs -0 -I '{}' sh -c "printf '%s\n' \"\$(sed 's/ - version/ version/' '{}')\" >'{}'" --- src/jailcheck/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jailcheck') diff --git a/src/jailcheck/main.c b/src/jailcheck/main.c index 8fe189d57..e01f1ca4e 100644 --- a/src/jailcheck/main.c +++ b/src/jailcheck/main.c @@ -38,7 +38,7 @@ static char *usage_str = static void usage(void) { - printf("jailcheck - version %s\n\n", VERSION); + printf("jailcheck version %s\n\n", VERSION); puts(usage_str); } -- cgit v1.2.3-54-g00ecf