optparse icon indicating copy to clipboard operation
optparse copied to clipboard

Alignment for usage

Open K-Ko opened this issue 11 years ago • 0 comments

The arguments help is differerent aligned than the "default" help description.

Test:

#!/bin/bash
. optparse.bash

optparse.define short=T long=test desc='Test run' variable=TEST default=false

source $( optparse.build )

echo "$@"

Result:

 # ./t.sh --help
 usage: ./t.sh [OPTIONS]
 OPTIONS:


 -T --test:                             Test run [default:false]
 -? --help : usage

K-Ko avatar Jul 15 '14 10:07 K-Ko