Skip to content

Commit 1fdc839

Browse files
committed
Allow rm all as alias for rm *
Asterisks are not entirely convenient for a cli
1 parent 9757b47 commit 1fdc839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

green_cli/tx.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def _filter_utxos(utxo_filter, utxos):
217217
if address and address == utxo.get('address', None):
218218
selected.append(utxo)
219219
continue
220-
if txhash == '*' or txhash == utxo['txhash']:
221-
if not pt_idx or pt_idx == '*' or int(pt_idx) == utxo['pt_idx']:
220+
if txhash == '*' or txhash == 'all' or txhash == utxo['txhash']:
221+
if not pt_idx or pt_idx == 'all' or pt_idx == '*' or int(pt_idx) == utxo['pt_idx']:
222222
selected.append(utxo)
223223
return selected
224224

0 commit comments

Comments
 (0)