mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:58:10 +00:00
TextEditor: Give the --preview-mode
argument a short version
This commit is contained in:
parent
a88807e5b3
commit
db9a507f7f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto preview_mode = "auto"sv;
|
||||
StringView file_to_edit;
|
||||
Core::ArgsParser parser;
|
||||
parser.add_option(preview_mode, "Preview mode, one of 'none', 'html', 'markdown', 'auto'", "preview-mode", '\0', "mode");
|
||||
parser.add_option(preview_mode, "Preview mode, one of 'none', 'html', 'markdown', 'auto'", "preview-mode", 'p', "mode");
|
||||
parser.add_positional_argument(file_to_edit, "File to edit, with optional starting line and column number", "file[:line[:column]]", Core::ArgsParser::Required::No);
|
||||
parser.parse(arguments);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue