File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ sub show-docs(Str $path, :$section) {
65
65
}
66
66
67
67
multi sub MAIN () {
68
+ my $ me = $ * PROGRAM_NAME . IO . basename ;
69
+
68
70
say ' What documentation do you want to read?' ;
69
- say " Examples: $ * PROGRAM_NAME Type::Str" ;
70
- say " $ * PROGRAM_NAME Type::Str.split" ;
71
+ say " Examples: $ me Type::Str" ;
72
+ say " $ me Type::Str.split" ;
71
73
}
72
74
73
75
multi sub MAIN ($ docee ) {
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ sub findbin() returns Str {
11
11
constant INDEX = findbin() ~ ' index.data' ;
12
12
13
13
multi sub MAIN () {
14
- say " Usage: $ * PROGRAM_NAME build to build an index for 'p6doc -f'" ;
15
- say " Usage: $ * PROGRAM_NAME list to list the names" ;
16
- say " Usage: $ * PROGRAM_NAME lookup <key> to display module name containing key" ;
17
- say " Usage: $ * PROGRAM_NAME path-to-index to show where the index file lives" ;
14
+ my $ me = $ * PROGRAM_NAME . IO . basename ;
15
+
16
+ say " Usage: $ me build to build an index for 'p6doc -f'" ;
17
+ say " Usage: $ me list to list the names" ;
18
+ say " Usage: $ me lookup <key> to display module name containing key" ;
19
+ say " Usage: $ me path-to-index to show where the index file lives" ;
18
20
}
19
21
20
22
multi sub MAIN (' path-to-index' ) {
You can’t perform that action at this time.
0 commit comments