Skip to content

Commit 127c2b9

Browse files
authored
Fix promise help (#82)
Signed-off-by: Phil Dibowitz <phil@ipom.com>
1 parent ba52788 commit 127c2b9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

bin/promise_stats

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ end
199199
def main
200200
if ARGV.empty? || %w{--help -h}.include?(ARGV.first)
201201
puts <<~HELP
202-
Usage: #{$PROGRAM_NAME} [subcommand] [options]
202+
Usage: #{$PROGRAM_NAME} [options]
203203
204-
Subcommands:
205-
add-promise Add a new promise
206-
resolve-promise Resolve a pending promise
207-
abandon-promise Mark a promise as abandoned
208-
edit-promise Edit an existing promise
204+
Modes:
205+
add Add a new promise
206+
resolve Resolve a pending promise
207+
abandon Mark a promise as abandoned
208+
edit Edit an existing promise
209209
status Show unresolved promises
210210
211211
Options:
@@ -214,9 +214,10 @@ def main
214214
--reference="text" Optional reference
215215
--db-file=FILE SQLite3 DB file
216216
--include-abandoned Show abandoned in status
217+
--mode=MODE Mode to operate in
217218
218219
Example:
219-
#{$PROGRAM_NAME} add-promise --promise="Call mom" --date=2025-05-08
220+
#{$PROGRAM_NAME} -m add-promise --promise="Call mom" --date=2025-05-08
220221
HELP
221222
exit
222223
end

0 commit comments

Comments
 (0)