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/firecfg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/firecfg') diff --git a/src/firecfg/main.c b/src/firecfg/main.c index e1ff7e17a..0725ca79f 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c @@ -60,7 +60,7 @@ static char *usage_str = "Homepage: https://firejail.wordpress.com\n\n"; static void usage(void) { - printf("firecfg - version %s\n\n", VERSION); + printf("firecfg version %s\n\n", VERSION); puts(usage_str); } -- cgit v1.2.3-54-g00ecf