aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-03-13 14:31:12 -0500
committerColin Okay <okay@toyful.space>2022-03-13 14:31:12 -0500
commit8ba6552132fab6daef1f2b10adf932c87947e2ec (patch)
treebcd5382723194eee9fb40c0def06778adf5a90ab /app
parent5531288c433641d81d1359e0afa69f86d4bf5d07 (diff)
can run the edit command on drafts with --redraft
Diffstat (limited to 'app')
-rw-r--r--app/app.lisp8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/app.lisp b/app/app.lisp
index 01a88ca..08e203e 100644
--- a/app/app.lisp
+++ b/app/app.lisp
@@ -123,7 +123,11 @@ export EDITOR=/usr/bin/zile
(group (:header "EDITING ONELINERS" :hidden t)
(text :contents "Usage: ol edit <IDENTIFIER>")
(text :contents " ")
- (text :contents "Interactively alter a oneliner and uplaod it to the server."))
+ (text :contents "Interactively alter a oneliner and uplaod it to the server.")
+ (text :contents " ")
+ (text :contents "Options:")
+ (flag :long-name "redraft"
+ :description "Indicates that you wish to edit a draft instead of a published oneliner."))
(group (:header "PUBLISHING ONELINERS" :hidden t)
(text :contents "Usage: ol publish <DRAFT>")
(text :contents " ")
@@ -232,7 +236,7 @@ than the users."
(:new
(cli:add-new-oneliner))
(:edit
- (cli:edit-item id-or-name (getopt :long-name "draft")))
+ (cli:edit-item id-or-name (getopt :long-name "redraft")))
(:publish
(cli::publish-draft id-or-name))
(:flag