The usage has become a bit unwieldy with the command list.

Signed-off-by: Jani Nikula <jani.nik...@intel.com>
---
 dim | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dim b/dim
index 5b105743cd65..79245550b6b2 100755
--- a/dim
+++ b/dim
@@ -1241,7 +1241,11 @@ function dim_usage
        echo "usage: $dim [OPTIONS] SUBCOMMAND [ARGUMENTS]"
        echo
        echo "The available subcommands are:"
-       dim_list_commands | sed 's/^/\t/'
+       if hash column 2>/dev/null; then
+               dim_list_commands | column -c 72 | sed 's/^/\t/'
+       else
+               dim_list_commands | sed 's/^/\t/'
+       fi
        echo
        echo "See '$dim help' for more information."
 }
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to