Skip to content

Commit f868a82

Browse files
committed
tools/semver-compare.sh: add dashless aliases to expand and strip actions [networkupstools#3055]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent ac40431 commit f868a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/semver-compare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ EOF
202202
# FIXME: "else" and error handling vs number too small and ignored?
203203
shift
204204
;;
205-
--expand|-x) echo "$2" | filter_add_extra_width ; shift ;;
206-
--strip|+x) echo "$2" | filter_away_leading_zeroes ; shift ;;
205+
--expand|-x|expand) echo "$2" | filter_add_extra_width ; shift ;;
206+
--strip|+x|strip) echo "$2" | filter_away_leading_zeroes ; shift ;;
207207
--sortable-expand) printf '%s\t%s\n' "`echo \"$2\" | filter_add_extra_width`" "$2" ; shift ;;
208208
--sortable-strip) printf '%s\t%s\n' "$2" "`echo \"$2\" | filter_away_leading_zeroes`" ; shift ;;
209209
--sort|sort)

0 commit comments

Comments
 (0)