File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # coding: utf-8
3
+
1
4
from zerobin .paste import Paste
5
+ from sigtools .modifiers import annotate , autokwoargs
2
6
from clize import run
3
7
import re
4
8
@@ -16,17 +20,18 @@ def unpack_paste(paste):
16
20
return try_url .group ('paste_id' )
17
21
return paste
18
22
19
-
20
- def remove_paste (* pastes , quiet :'q' = False ):
23
+ @annotate (quiet = 'q' )
24
+ @autokwoargs
25
+ def remove_paste (quiet = False , * pastes ):
21
26
"""
22
27
Remove pastes, given its ID or its URL
23
28
24
- pastes: List of pastes, given by ID or URL
25
-
26
29
quiet: Don't print anything
30
+
31
+ pastes: List of pastes, given by ID or URL
27
32
"""
28
33
29
- for paste_uuid in map (unpack_paste , paste_list ):
34
+ for paste_uuid in map (unpack_paste , pastes ):
30
35
try :
31
36
Paste .load (paste_uuid ).delete ()
32
37
You can’t perform that action at this time.
0 commit comments