* helper script for escaping argument strings
This commit is contained in:
parent
dc1ef24ad9
commit
0b4fcc19a1
|
@ -1638,6 +1638,7 @@ PtP
|
|||
PTpOWeR
|
||||
PtS
|
||||
PTTeam
|
||||
PublicHD
|
||||
Pudding
|
||||
PUKKA
|
||||
Purana
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
net.sourceforge.filebot.cli.CLILogging.CLILogger.setLevel(java.util.logging.Level.OFF)
|
||||
|
||||
console.printf('Enter: ')
|
||||
def s = console.readLine()
|
||||
|
||||
// ‘$’, ‘`’, or ‘\’
|
||||
console.printf('%n"' + s.replaceAll('["$`\\\\]', {'\\'+it}) + '"%n')
|
Loading…
Reference in New Issue