mirror of
https://github.com/troglobit/finit.git
synced 2026-10-20 11:19:35 +00:00
Rename finit command line option finit.show_status -> finit.status
Usability. Remains backwards compatible for now, but finit.show_status is as of 4.3 deprecated. Likely to be removed int 5.0 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
16aef80682
commit
3d91112e0d
3 files changed
+8
-7
No files matched your search
+3
-3
@@ -86,8 +86,8 @@ fallback:
|
||||
}
|
||||
|
||||
/*
|
||||
* finit.debug = [on,off]
|
||||
* finit.show_status = [on,off]
|
||||
* finit.debug = [on,off]
|
||||
* finit.status = [on,off] (compat finit.show_status)
|
||||
* finit.status_style = [old,classic,modern]
|
||||
*/
|
||||
static void parse_finit_opts(char *opt)
|
||||
@@ -116,7 +116,7 @@ static void parse_finit_opts(char *opt)
|
||||
return;
|
||||
}
|
||||
|
||||
if (string_compare(opt, "show_status")) {
|
||||
if (string_compare(opt, "status") || string_compare(opt, "show_status")) {
|
||||
show_progress(get_bool(arg, 1) ? PROGRESS_DEFAULT : PROGRESS_SILENT);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user