diff --git a/sequencer/sequencer.sh b/sequencer/sequencer.sh index ba9bc08..2960b27 100755 --- a/sequencer/sequencer.sh +++ b/sequencer/sequencer.sh @@ -9,7 +9,7 @@ VERSION_REV=11 VERSION_MAJOR=0 -VERSION_MINOR=3 +VERSION_MINOR=4 ## Start of generic script part @@ -722,9 +722,13 @@ parseAlias() { # [NO TEMPLATE] # 0 (default) : Ask for template creation # 1 : Do not ask for template creation -# Always display sequencer help and, if available, sequence help +# - Always display sequencer help and, if available, sequence help +# - Cluster continous (more than 1) steps visually together displayHelp() { local i + local answer + local clusterSize=0 + local lastClusterSize=0 local createTemplate=1 local stepsFound=0 CONTEXT_HELP=1 @@ -770,8 +774,17 @@ displayHelp() { # Display step reference in help if step function exists existsFunction step_${i} if [ $? -ne 0 ] ; then + if [ $clusterSize -ne 0 ] ; then + lastClusterSize=$clusterSize + clusterSize=0 + fi continue fi + ((clusterSize+=1)) + if [ $lastClusterSize -gt 1 ] ; then + lastClusterSize=0 + echo + fi printf ' Step %3s ' $i # Display alias if exists