File tree 3 files changed +26
-7
lines changed
3 files changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 0.1.2] - 2020-05-09
8
+
9
+ ### Fixed
10
+ Include missing version information
11
+
12
+ ### Fixed
13
+ * use ` printf ` instead of ` clear ` to clear the screen
14
+
7
15
## [ 0.1.1] - 2020-05-09
8
16
9
17
### Fixed
Original file line number Diff line number Diff line change @@ -7,13 +7,20 @@ set -eou pipefail
7
7
8
8
pname=" bashcards"
9
9
ext=" bcrds"
10
+ version=" 0.1.2"
11
+
12
+ function version {
13
+ echo " $version "
14
+ return 0
15
+ }
10
16
11
17
function usage {
12
18
cat << EOF
13
19
Usage: $pname [OPTION...]
14
20
15
- -d, --dir DIRECTORY Specify directory with *.$ext files
21
+ -d, --dir DIRECTORY Directory containing *.$ext files
16
22
-h, --help See this help information
23
+ -v, --version Current version
17
24
EOF
18
25
19
26
return 0
@@ -208,7 +215,8 @@ function start {
208
215
# Determine command
209
216
210
217
case " $1 " in
211
- -d|--dir ) [[ ! -n " ${2-} " ]] && dir_not_found; start $2 ;;
212
- -h|--help) usage;;
213
- * ) unknown-cmd;;
218
+ -d|--dir ) [[ ! -n " ${2-} " ]] && dir_not_found; start $2 ;;
219
+ -h|--help ) usage;;
220
+ -v|--version) version;;
221
+ * ) unknown-cmd;;
214
222
esac
Original file line number Diff line number Diff line change 4
4
.SH NAME
5
5
bashcards \- Practice flashcards in bash
6
6
.SH SYNOPSIS
7
- bashcards [-d directory ] [-h|--help]
7
+ bashcards [-v,--version ] [-h|--help] [-d directory ]
8
8
.SH DESCRIPTION
9
9
bashcards is a bash program for practicing flashcards in bash.
10
10
.SH OPTIONS
11
11
.TP
12
- .BR -d, --dir
12
+ .BR -d,--dir
13
13
Directory containing bashcard files (*.bcrds). Each file should contain a group
14
14
of bashcards (one per line) formatted as front=back. If not provided, default
15
15
bashcard values will be used.
16
16
.TP
17
- .BR -h, --help
17
+ .BR -h,--help
18
18
See this help information
19
+ .TP
20
+ .BR -v,--version
21
+ Current version
19
22
.SH BUGS
20
23
No known bugs.
21
24
.SH AUTHOR
You can’t perform that action at this time.
0 commit comments