Skip to content

Commit 6ee5dd3

Browse files
chore: markdown consistencies
1 parent 621e435 commit 6ee5dd3

7 files changed

Lines changed: 90 additions & 90 deletions

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CLASP.Python <!-- omit from toc -->
2-
**C**ommand-**L**ine **A**rgument **S**orting and **P**arsing for Python
2+
**C**ommand-**L**ine **A**rgument **S**orting and **P**arsing, for Python
33

44
![Language](https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white)
55
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
@@ -17,11 +17,11 @@
1717
- [Components](#components)
1818
- [Examples](#examples)
1919
- [Project Information](#project-information)
20-
- [Where to get help](#where-to-get-help)
21-
- [Contribution guidelines](#contribution-guidelines)
22-
- [Dependencies](#dependencies)
23-
- [Related projects](#related-projects)
24-
- [License](#license)
20+
- [Where to get help](#where-to-get-help)
21+
- [Contribution guidelines](#contribution-guidelines)
22+
- [Dependencies](#dependencies)
23+
- [Related projects](#related-projects)
24+
- [License](#license)
2525

2626

2727
## Introduction
@@ -37,7 +37,7 @@ Python version.
3737
Install via **pip** or **pip3**, as in:
3838

3939
```
40-
$ pip3 install pyclasp
40+
pip3 install pyclasp
4141
```
4242

4343
Use via **import**:

‎examples/duplicate_aliases.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ else:
5050
If executed with the arguments
5151

5252
```
53-
$ python examples/multiple_options.py --help
53+
python examples/multiple_options.py --help
5454
```
5555

5656
it gives the following output on the standard output stream:
@@ -60,23 +60,23 @@ USAGE: duplicate_aliases.py [ ... flags and options ... ]
6060
6161
flags/options:
6262
63-
-c
64-
--compile
65-
None
63+
-c
64+
--compile
65+
None
6666
67-
-d
68-
--debug
69-
None
67+
-d
68+
--debug
69+
None
7070
71-
-c
72-
--execute
73-
None
71+
-c
72+
--execute
73+
None
7474
75-
--help
76-
Shows usage and terminates
75+
--help
76+
Shows usage and terminates
7777
78-
--version
79-
Shows version and terminates
78+
--version
79+
Shows version and terminates
8080
```
8181

8282
and it gives the following output on the standard error stream:

‎examples/flag_and_option_specifications.md‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ if (unused):
8787
If executed with no arguments
8888

8989
```
90-
python examples/flag_and_option_specifications.py
90+
python3 examples/flag_and_option_specifications.py
9191
```
9292

9393
or (in a Unix shell):
9494

9595
```
96-
./examples/flag_and_option_specifications.py
96+
./examples/flag_and_option_specifications.py
9797
```
9898

9999
it gives the output:
@@ -106,7 +106,7 @@ it gives the output:
106106
If executed with the arguments
107107

108108
```
109-
python examples/flag_and_option_specifications.py --help
109+
python examples/flag_and_option_specifications.py --help
110110
```
111111

112112
it gives the output:
@@ -120,33 +120,33 @@ USAGE: flag_and_option_specifications.py [ ... flags and options ... ]
120120
121121
flags/options:
122122
123-
-d
124-
--debug
125-
runs in Debug mode
123+
-d
124+
--debug
125+
runs in Debug mode
126126
127-
-c --verbosity=chatty
128-
-v <value>
129-
--verbosity=<value>
130-
specifies the verbosity
131-
where <value> one of:
132-
terse
133-
quiet
134-
silent
135-
chatty
127+
-c --verbosity=chatty
128+
-v <value>
129+
--verbosity=<value>
130+
specifies the verbosity
131+
where <value> one of:
132+
terse
133+
quiet
134+
silent
135+
chatty
136136
137-
--help
138-
Shows usage and terminates
137+
--help
138+
Shows usage and terminates
139139
140-
--version
141-
Shows version and terminates
140+
--version
141+
Shows version and terminates
142142
```
143143

144144
### Specify flags and options in long-form
145145

146146
If executed with the arguments
147147

148148
```
149-
python examples/flag_and_option_specifications.py --debug --verbosity=silent
149+
python examples/flag_and_option_specifications.py --debug --verbosity=silent
150150
```
151151

152152
it gives the output:
@@ -161,7 +161,7 @@ Debug mode is specified
161161
If executed with the arguments
162162

163163
```
164-
python examples/flag_and_option_specifications.py -v silent -d
164+
python3 examples/flag_and_option_specifications.py -v silent -d
165165
```
166166

167167
it gives the (same) output:
@@ -176,7 +176,7 @@ Debug mode is specified
176176
If executed with the arguments
177177

178178
```
179-
python examples/flag_and_option_specifications.py -c -d
179+
python3 examples/flag_and_option_specifications.py -c -d
180180
```
181181

182182
it gives the output:
@@ -191,7 +191,7 @@ Debug mode is specified
191191
If executed with the arguments
192192

193193
```
194-
python examples/flag_and_option_specifications.py -dc
194+
python3 examples/flag_and_option_specifications.py -dc
195195
```
196196

197197
it gives the (same) output:

‎examples/multiple_options.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if (unused):
8686
If executed with the arguments
8787

8888
```
89-
python examples/multiple_options.py -z -z -e cpp -e cxx -e cxx -z
89+
python3 examples/multiple_options.py -z -z -e cpp -e cxx -e cxx -z
9090
```
9191

9292
it gives the output:

‎examples/sections.md‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ sys.stdout.write("no flags specified\n");
8383
If executed with no arguments
8484

8585
```
86-
python examples/sections.py
86+
python3 examples/sections.py
8787
```
8888

8989
or (in a Unix shell):
9090

9191
```
92-
./examples/sections.py
92+
./examples/sections.py
9393
```
9494

9595
it gives the output:
@@ -103,7 +103,7 @@ no flags specified
103103
If executed with the arguments
104104

105105
```
106-
python examples/sections.py --help
106+
python3 examples/sections.py --help
107107
```
108108

109109
it gives the output:
@@ -117,32 +117,32 @@ USAGE: sections.py [ ... flags and options ... ]
117117
118118
flags/options:
119119
120-
Behaviour:
120+
Behaviour:
121121
122-
-v <value>
123-
--verbosity=<value>
124-
specifies the verbosity
125-
where <value> one of:
126-
terse
127-
quiet
128-
silent
129-
chatty
122+
-v <value>
123+
--verbosity=<value>
124+
specifies the verbosity
125+
where <value> one of:
126+
terse
127+
quiet
128+
silent
129+
chatty
130130
131-
Standard:
131+
Standard:
132132
133-
--help
134-
Shows usage and terminates
133+
--help
134+
Shows usage and terminates
135135
136-
--version
137-
Shows version and terminates
136+
--version
137+
Shows version and terminates
138138
```
139139

140140
### Show version
141141

142142
If executed with the arguments
143143

144144
```
145-
python examples/sections.py --version
145+
python3 examples/sections.py --version
146146
```
147147

148148
it gives the output:
@@ -156,7 +156,7 @@ sections.py 0.0.1
156156
If executed with the arguments
157157

158158
```
159-
python examples/sections.py --unknown=value
159+
python3 examples/sections.py --unknown=value
160160
```
161161

162162
it gives the output (on the standard error stream):

‎examples/show_usage_and_version.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ VERSION = [ 0, 0, 2 ]
2424

2525
INFO_LINES = (
2626

27-
'CLASP.Python examples',
28-
':version:',
29-
"Illustrates use of CLASP.Python's clasp.show_usage() and clasp.show_version() methods",
30-
'',
27+
"CLASP.Python examples",
28+
':version:',
29+
"Illustrates use of CLASP.Python's clasp.show_usage() and clasp.show_version() methods",
30+
'',
3131
)
3232

3333
# Specify specifications, parse, and checking standard flags
@@ -70,13 +70,13 @@ sys.stdout.write("no flags specified\n");
7070
If executed with no arguments
7171

7272
```
73-
python examples/show_usage_and_version.py
73+
python3 examples/show_usage_and_version.py
7474
```
7575

7676
or (in a Unix shell):
7777

7878
```
79-
./examples/show_usage_and_version.py
79+
./examples/show_usage_and_version.py
8080
```
8181

8282
it gives the output:
@@ -90,7 +90,7 @@ no flags specified
9090
If executed with the arguments
9191

9292
```
93-
python examples/show_usage_and_version.py --help
93+
python3 examples/show_usage_and_version.py --help
9494
```
9595

9696
it gives the output:
@@ -104,19 +104,19 @@ USAGE: show_usage_and_version.py [ ... flags and options ... ]
104104
105105
flags/options:
106106
107-
--help
108-
Shows usage and terminates
107+
--help
108+
Shows usage and terminates
109109
110-
--version
111-
Shows version and terminates
110+
--version
111+
Shows version and terminates
112112
```
113113

114114
### Show version
115115

116116
If executed with the arguments
117117

118118
```
119-
python examples/show_usage_and_version.py --version
119+
python3 examples/show_usage_and_version.py --version
120120
```
121121

122122
it gives the output:
@@ -130,7 +130,7 @@ show_usage_and_version.py 0.0.2
130130
If executed with the arguments
131131

132132
```
133-
python examples/show_usage_and_version.py --unknown=value
133+
python3 examples/show_usage_and_version.py --unknown=value
134134
```
135135

136136
it gives the output (on the standard error stream):

0 commit comments

Comments
 (0)