Commit d50607b 1 parent 51abbc3 commit d50607b Copy full SHA for d50607b
File tree 5 files changed +7
-6
lines changed
examples/render-mandoc/docs
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
.\" Automatically generated by Pandoc 3.1.9
2
2
.\"
3
- .TH "download" "1" "March 2024" "Version 0.1.0" "Sample application"
3
+ .TH "download" "1" "April 2024" "Version 0.1.0" "Sample application"
4
4
.SH NAME
5
5
\f[B] download \f[ R ] - Sample application
6
6
.SH SYNOPSIS
Original file line number Diff line number Diff line change 1
1
% download(1) Version 0.1.0 | Sample application
2
2
% Lana Lang
3
- % March 2024
3
+ % April 2024
4
4
5
5
NAME
6
6
==================================================
Original file line number Diff line number Diff line change @@ -308,10 +308,11 @@ def summary_string
308
308
# Returns a constructed string suitable for Usage pattern
309
309
def usage_string
310
310
result = [ full_name ]
311
+ command_string = default_command &.default == 'force' ? '[COMMAND]' : 'COMMAND'
311
312
312
313
result . push case mode
313
- when :global_flags then [ '[OPTIONS]' , 'COMMAND' ]
314
- when :commands then [ 'COMMAND' ]
314
+ when :global_flags then [ '[OPTIONS]' , command_string ]
315
+ when :commands then [ command_string ]
315
316
when :args_and_flags then usage_string_args + [ '[OPTIONS]' ]
316
317
when :args then usage_string_args
317
318
when :flags then [ '[OPTIONS]' ]
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ run ./tester --help to test your bash script
8
8
tester - Sample application that uses the forced default command option
9
9
10
10
Usage:
11
- tester COMMAND
11
+ tester [ COMMAND]
12
12
tester [COMMAND] --help | -h
13
13
tester --version | -v
14
14
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ ISSUE TRACKER
44
44
AUTHORS
45
45
Lana Lang.
46
46
47
- Version 0.1.0 March 2024 download(1)
47
+ Version 0.1.0 April 2024 download(1)
You can’t perform that action at this time.
0 commit comments