Skip to content

Commit 2b4a105

Browse files
committed
- [*] cosmetic, change UsageStyle to DenseNormalStyle
1 parent 3c2c44f commit 2b4a105

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

README.e.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SingleSel2: cascadia -i /tmp/cascadia.xml -o -c 'input[name=Sex][value=F]'
1010
{{template "badge/goreport" .}}
1111
{{template "badge/travis" .}}
1212
{{render "badge/codeship" . "CsUUID" "7fbac590-a3dd-0134-4b89-26c19bdf8358" "CsProjectID" "190387"}}
13-
[![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-R.svg)](http://godoc.org/github.com/go-easygen/wireframe)
13+
[![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-B.svg)](http://godoc.org/github.com/go-easygen/wireframe)
1414

1515
## {{toc 5}}
1616

@@ -207,6 +207,7 @@ I'm not an expert on CSS Selector at all, but the following resources are what I
207207
Tong SUN
208208
![suntong from cpan.org](https://img.shields.io/badge/suntong-%40cpan.org-lightgrey.svg "suntong from cpan.org")
209209

210-
_Powered by_ [**WireFrame**](https://github.com/go-easygen/wireframe), [![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-Y.svg)](http://godoc.org/github.com/go-easygen/wireframe), the _one-stop wire-framing solution_ for Go cli based projects, from start to deploy.
210+
[![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-Y.svg)](http://godoc.org/github.com/go-easygen/wireframe)
211+
_Powered by_ [**WireFrame**](https://github.com/go-easygen/wireframe), the _one-stop wire-framing solution_ for Go cli based projects, from start to deploy.
211212

212213
All patches welcome.

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Go Report Card](https://goreportcard.com/badge/github.com/suntong/cascadia)](https://goreportcard.com/report/github.com/suntong/cascadia)
77
[![travis Status](https://travis-ci.org/suntong/cascadia.svg?branch=master)](https://travis-ci.org/suntong/cascadia)
88
[![Codeship Status](https://codeship.com/projects/7fbac590-a3dd-0134-4b89-26c19bdf8358/status?branch=master)](https://codeship.com/projects/190387)
9-
[![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-R.svg)](http://godoc.org/github.com/go-easygen/wireframe)
9+
[![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-B.svg)](http://godoc.org/github.com/go-easygen/wireframe)
1010

1111
## TOC
1212
- [Usage](#usage)
@@ -36,17 +36,17 @@ Usage:
3636

3737
Options:
3838

39-
-h, --help display help information
40-
-i, --in *The html/xml file to read from (or stdin)
41-
-o, --out *The output file (or stdout)
42-
-c, --css *CSS selectors (can provide more if not using --piece)
43-
-p, --piece sub CSS selectors within -css to split that block up into pieces
39+
-h, --help display help information
40+
-i, --in *The html/xml file to read from (or stdin)
41+
-o, --out *The output file (or stdout)
42+
-c, --css *CSS selectors (can provide more if not using --piece)
43+
-p, --piece sub CSS selectors within -css to split that block up into pieces
4444
format: PieceName=[RAW:]selector_string
45-
RAW: will return the selected as-is; else the text will be returned
46-
-d, --delimiter[= ] delimiter for pieces csv output
47-
-w, --wrap-html wrap up the output with html tags
48-
-b, --base base href tag used in the wrapped up html
49-
-q, --quiet be quiet
45+
RAW: will return the selected as-is; else the text will be returned
46+
-d, --delimiter delimiter for pieces csv output [= ]
47+
-w, --wrap-html wrap up the output with html tags
48+
-b, --base base href tag used in the wrapped up html
49+
-q, --quiet be quiet
5050
```
5151
5252
Its output has two modes, _none-block selection mode_ and _block selection mode_, depending on whether the `--piece` parameter is given on the command line or not.
@@ -239,6 +239,7 @@ I'm not an expert on CSS Selector at all, but the following resources are what I
239239
Tong SUN
240240
![suntong from cpan.org](https://img.shields.io/badge/suntong-%40cpan.org-lightgrey.svg "suntong from cpan.org")
241241
242-
_Powered by_ [**WireFrame**](https://github.com/go-easygen/wireframe), [![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-Y.svg)](http://godoc.org/github.com/go-easygen/wireframe), the _one-stop wire-framing solution_ for Go cli based projects, from start to deploy.
242+
[![PoweredBy WireFrame](https://github.com/go-easygen/wireframe/blob/master/PoweredBy-WireFrame-Y.svg)](http://godoc.org/github.com/go-easygen/wireframe)
243+
_Powered by_ [**WireFrame**](https://github.com/go-easygen/wireframe), the _one-stop wire-framing solution_ for Go cli based projects, from start to deploy.
243244
244245
All patches welcome.

cascadia_main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ var WrapHTMLBeg string
5252
// Function definitions
5353

5454
func main() {
55+
cli.SetUsageStyle(cli.DenseNormalStyle)
5556
if err := cli.Root(root).Run(os.Args[1:]); err != nil {
5657
fmt.Fprintln(os.Stderr, err)
5758
}

0 commit comments

Comments
 (0)