From 6856c63421fcb75101bd446803d1bbfc88883400 Mon Sep 17 00:00:00 2001 From: Federico Bruni Date: Sat, 23 Jun 2018 17:57:29 +0200 Subject: [PATCH] Doc: explain how to open a file at a certain line and column --- src/main-process/parse-command-line.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main-process/parse-command-line.js b/src/main-process/parse-command-line.js index 5c074a14e..f24422ef4 100644 --- a/src/main-process/parse-command-line.js +++ b/src/main-process/parse-command-line.js @@ -12,13 +12,18 @@ module.exports = function parseCommandLine (processArgs) { options.usage( dedent`Atom Editor v${version} - Usage: atom [options] [path ...] + Usage: + atom [options] [path ...] + atom file[:line[:column]] One or more paths to files or folders may be specified. If there is an existing Atom window that contains all of the given folders, the paths will be opened in that window. Otherwise, they will be opened in a new window. + A file may be opened at the desired line (and optionally column) by + appending the numbers right after the file name, e.g. \`atom file:5:8\`. + Paths that start with \`atom://\` will be interpreted as URLs. Environment Variables: