diff options
-rwxr-xr-x | libreboot | 4 | ||||
-rwxr-xr-x | libs/project | 11 |
2 files changed, 13 insertions, 2 deletions
@@ -100,8 +100,8 @@ libreboot_project() { if ! project_function_check "$project" "$action"; then libreboot_usage exit 1 - elif [[ "$action" == 'usage' ]]; then - project_action "$action" "$project" "$@" + elif [[ $action == usage ]]; then + project_action_usage "$project" "$@" else project_action_arguments "$action" "$project" "$@" fi diff --git a/libs/project b/libs/project index 0bcc4d9d..673689ee 100755 --- a/libs/project +++ b/libs/project @@ -378,6 +378,17 @@ project_action_projects() { done < "$path" } +project_action_usage() { + local project=$1 + shift + + ( + project_include "$project" + + project_action usage "$project" "$@" + ) +} + project_path() { local project=$1 |