Skip to content

Commit 4688123

Browse files
committed
cleanup help printout
1 parent 0f889f3 commit 4688123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libexec/profile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ event=cpu
44
format=flat
55
seconds=12
66
usage="Usage: profile [-h] [-s seconds] [-w seconds] [-e event] [-f format] [--] executable args"
7-
usage2="Usage: profile [-h] [-s seconds] [-w seconds] [-e cpu|alloc|nativemem|lock|cache-misses] [-f flat|traces|collapsed|flamegraph|tree|jfr|otlp] [--] executable args"
7+
usage2="Usage: profile [options] executable args\nOptions:\n\t[-h] [-s seconds] [-w seconds]\n\t[-e cpu|alloc|nativemem|lock|cache-misses]\n\t[-f flat|traces|collapsed|flamegraph|tree|jfr|otlp]"
88

99
while getopts s:f:e:o:w:h opt
1010
do
@@ -14,7 +14,7 @@ do
1414
e) event=$OPTARG ;;
1515
o) stub=$OPTARG ;;
1616
w) warmup=$OPTARG ;;
17-
h) echo $usage2 && exit 0 ;;
17+
h) echo -e $usage2 && exit 0 ;;
1818
--) break ;;
1919
\?) echo $usage && exit 1 ;;
2020
# :) echo $usage && exit 2 ;;

0 commit comments

Comments
 (0)