Skip to content

Commit 2e15481

Browse files
committed
Allow rm all as alias for rm *
Asterisks are not entirely convenient for a cli
1 parent bd4e28e commit 2e15481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

green_cli/tx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def _filter_utxos(utxo_filter, utxos):
219219
if address and address == utxo.get('address', None):
220220
selected.append(utxo)
221221
continue
222-
if txhash == '*' or txhash == utxo['txhash']:
223-
if not pt_idx or pt_idx == '*' or int(pt_idx) == utxo['pt_idx']:
222+
if txhash == '*' or txhash == 'all' or txhash == utxo['txhash']:
223+
if not pt_idx or pt_idx == 'all' or pt_idx == '*' or int(pt_idx) == utxo['pt_idx']:
224224
selected.append(utxo)
225225
return selected
226226

0 commit comments

Comments
 (0)