aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/usage.c
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-05-11 14:02:12 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-05-14 16:50:28 -0300
commitfcbc8ce972e1a035c30e945c7e985beda841f809 (patch)
treec9b8cf1ae78a880c7498b1f6992fb369b756b16b /src/firemon/usage.c
parentjailcheck: fix wrong program name in --version (diff)
downloadfirejail-fcbc8ce972e1a035c30e945c7e985beda841f809.tar.gz
firejail-fcbc8ce972e1a035c30e945c7e985beda841f809.tar.zst
firejail-fcbc8ce972e1a035c30e945c7e985beda841f809.zip
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/' '{}')\" >'{}'"
Diffstat (limited to 'src/firemon/usage.c')
-rw-r--r--src/firemon/usage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firemon/usage.c b/src/firemon/usage.c
index 169ec9163..1cb1b7cfc 100644
--- a/src/firemon/usage.c
+++ b/src/firemon/usage.c
@@ -79,6 +79,6 @@ static char *help_str =
79 "\n"; 79 "\n";
80 80
81void usage(void) { 81void usage(void) {
82 printf("firemon - version %s\n", VERSION); 82 printf("firemon version %s\n", VERSION);
83 puts(help_str); 83 puts(help_str);
84} 84}