Skip to content

Commit

Permalink
chore: added descriptions to some edit command flags (jbangdev#1727)
Browse files Browse the repository at this point in the history
  • Loading branch information
quintesse authored Jan 25, 2024
1 parent 08a80ee commit f5d8300
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/dev/jbang/cli/Edit.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ public class Edit extends BaseCommand {
"--open" }, arity = "0..1", defaultValue = "${JBANG_EDITOR:-${default.edit.open:-}}", fallbackValue = "${JBANG_EDITOR:-${default.edit.open:-}}", description = "Opens editor/IDE on the temporary project.", preprocessor = StrictParameterPreprocessor.class)
public Optional<String> editor;

@CommandLine.Option(names = { "--no-open" })
@CommandLine.Option(names = { "--no-open" }, description = "Explicitly prevent JBang from opening an editor/IDE")
public boolean noOpen;

@CommandLine.Option(names = { "-b", "--sandbox" })
@CommandLine.Option(names = { "-b",
"--sandbox" }, description = "Edit in sandbox mode. Useful when the editor/IDE used has no JBang support")
boolean sandbox;

/**
Expand Down

0 comments on commit f5d8300

Please sign in to comment.