shithub: bin.rc

Download patch

ref: 1f1e48bc86e1d10e30546e0328d779422676a0a4
parent: 92d3d9d1a431f20df9ce8d3d42ac7fb428281a01
author: kvik <kvik@a-b.xyz>
date: Mon May 4 16:36:37 EDT 2020

bag: switch argument parsing to aux/getflags

--- a/bin/bag
+++ b/bin/bag
@@ -25,7 +25,7 @@
 }
 
 flagfmt = 'f:force,t:tags tags,m:note message'; args = 'file ...'
-if(! eval `''{aux/getflags $*}) aux/usage
+eval `''{aux/getflags $*} || exec aux/usage
 
 if(~ $#bag 0)
 	bag = /n/bag