File tree Expand file tree Collapse file tree 9 files changed +39
-4
lines changed
examples/render-mandoc/docs Expand file tree Collapse file tree 9 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 11.\" Automatically generated by Pandoc 3.2
22.\"
3- .TH "download" "1" "July 2024" "Version 0.1.0" "Sample application"
3+ .TH "download" "1" "August 2024" "Version 0.1.0" "Sample application"
44.SH NAME
55\f[B] download \f[ R ] \- Sample application
66.SH SYNOPSIS
Original file line number Diff line number Diff line change 11% download(1) Version 0.1.0 | Sample application
22% Lana Lang
3- % July 2024
3+ % August 2024
44
55NAME
66==================================================
Original file line number Diff line number Diff line change 1+ require 'shellwords'
2+
13module Bashly
24 module Script
35 class Flag < Base
Original file line number Diff line number Diff line change @@ -680,6 +680,32 @@ flag.long
680680
681681 See https://bashly.dannyb.co/configuration/flag/#long
682682
683+ flag.needs
684+
685+ Specify that this flag needs one or more additional flags. Use the long name
686+ of these needed flags.
687+
688+ flags:
689+ - long: --add
690+ arg: alias
691+
692+ # When using --add, --command and --target must also be provided
693+ needs: [--command, --target]
694+
695+ - long: --command
696+ arg: command
697+ help: Command for the alias
698+
699+ # Note that this relationship is marked on both sides
700+ needs: [--add]
701+
702+ - long: --target
703+ arg: target
704+ help: Where to add the alias
705+ needs: [--add]
706+
707+ See https://bashly.dannyb.co/configuration/flag/#needs
708+
683709flag.private
684710
685711 Specify that this flag should not be displayed in the help text.
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ flag.conflicts
4242flag.default
4343flag.help
4444flag.long
45+ flag.needs
4546flag.private
4647flag.repeatable
4748flag.required
Original file line number Diff line number Diff line change @@ -14,12 +14,15 @@ Usage:
1414Options:
1515 --cache
1616 Enable cache
17+ Conflicts: --no-cache
1718
1819 --no-cache
1920 Disable cache
21+ Conflicts: --cache, --fast
2022
2123 --fast
2224 Run faster
25+ Conflicts: --no-cache
2326
2427 --help, -h
2528 Show this help
Original file line number Diff line number Diff line change @@ -14,13 +14,16 @@ Usage:
1414Options:
1515 --add, -a ALIAS
1616 Alias to add
17+ Needs: --command, --target
1718
1819 --command, -c COMMAND
1920 Command for the alias
21+ Needs: --add
2022
2123 --target, -t TARGET
2224 Where to add the alias
2325 Allowed: global, local
26+ Needs: --add
2427
2528 --help, -h
2629 Show this help
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ ISSUE TRACKER
4444AUTHORS
4545 Lana Lang.
4646
47- Version 0.1.0 July 2024 download(1)
47+ Version 0.1.0 August 2024 download(1)
Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ EXAMPLES
2727
2828 download example.com ./output -f
2929
30- Version 0.1.0 MONTH YEAR ... APPNAME
30+ Version 0.1.0 MONTH YEAR ... APPNAME
You can’t perform that action at this time.
0 commit comments