You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cascadia_cli.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Options:
41
41
- Name: Piece
42
42
Type: OutputStyleMap
43
43
Flag: 'p,piece'
44
-
Usage: 'sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[RAW:]selector_string\n\t\t\tRAW: will return the selected as-is; else the text will be returned'
44
+
Usage: 'sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[OutputStyle:]selector_string\n\t\t\tOutputStyle:\n\t\t\t\tRAW: will return the selected as-is\n\t\t\t\tattr[xxx] : will return the value of an attribute named xxx \n\t\t\telse the text will be returned'
CSS []string`cli:"*c,css" usage:"CSS selectors (can provide more if not using --piece)"`
29
+
TextOutbool`cli:"t,text" usage:"Text output for none-block selection mode"`
30
+
TextRawbool`cli:"R,Raw" usage:"Raw text output, no trimming of leading and trailing white space"`
31
31
PieceOutputStyleMap`cli:"p,piece" usage:"sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[OutputStyle:]selector_string\n\t\t\tOutputStyle:\n\t\t\t\tRAW : will return the selected as-is\n\t\t\t\tattr[xxx] : will return the value of an attribute named xxx \n\t\t\telse the text will be returned"`
32
-
Delistring`cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
33
-
WrapHTMLbool`cli:"w,wrap-html" usage:"wrap up the output with html tags"`
34
-
Stylestring`cli:"y,style" usage:"style component within the wrapped html head"`
35
-
Basestring`cli:"b,base" usage:"base href tag used in the wrapped up html"`
36
-
Quietbool`cli:"q,quiet" usage:"be quiet"`
32
+
Delistring`cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
33
+
WrapHTMLbool`cli:"w,wrap-html" usage:"wrap up the output with html tags"`
34
+
Stylestring`cli:"y,style" usage:"style component within the wrapped html head"`
35
+
Basestring`cli:"b,base" usage:"base href tag used in the wrapped up html"`
36
+
Quietbool`cli:"q,quiet" usage:"be quiet"`
37
37
}
38
38
39
39
varroot=&cli.Command{
40
40
Name: "cascadiaC",
41
41
Desc: "cascadia wrapper\nVersion "+version+" built on "+date+
42
-
"\nCopyright (C) 2021, Tong Sun",
42
+
"\nCopyright (C) 2023, Tong Sun",
43
43
Text: "Command line interface to go cascadia CSS selectors package"+
44
44
"\n\nUsage:\n cascadia -i in -c css -o [Options...]",
0 commit comments