diff options
author | 2011-09-27 21:20:33 -0400 | |
---|---|---|
committer | 2011-09-27 21:20:33 -0400 | |
commit | 132e362f44e00cd93e04967efbfc138c53a47ee4 (patch) | |
tree | 9d68dcdca8d687e922a277f137813a09d9b4b12d /core/args.lua | |
parent | 43e9f2528415e8f2d43e7ba65f0d4c5b5d5adff4 (diff) | |
download | textadept-132e362f44e00cd93e04967efbfc138c53a47ee4.tar.gz textadept-132e362f44e00cd93e04967efbfc138c53a47ee4.zip |
Reformatted some LuaDoc.
Diffstat (limited to 'core/args.lua')
-rw-r--r-- | core/args.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/args.lua b/core/args.lua index f59a52cd..ea1c9093 100644 --- a/core/args.lua +++ b/core/args.lua @@ -1,6 +1,7 @@ -- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. ---- Processes command line arguments for Textadept. +--- +-- Processes command line arguments for Textadept. module('args', package.seeall) -- Markdown: @@ -30,9 +31,9 @@ end --- -- Processes command line arguments. --- Add command line switches with args.register(). Any unrecognized arguments +-- Add command line switches with `args.register()`. Any unrecognized arguments -- are treated as filepaths and opened. --- Generates an 'arg_none' event when no args are present. +-- Generates an `'arg_none'` event when no args are present. -- @see register function process() local no_args = true @@ -71,7 +72,7 @@ if WIN32 and #arg[0] > 0 then for i = 1, #params do arg[#arg + 1] = params[i] end end --- Set _G._USERHOME. +-- Set `_G._USERHOME`. local userhome = os.getenv(not WIN32 and 'HOME' or 'USERPROFILE')..'/.textadept' for i = 1, #arg do if (arg[i] == '-u' or arg[i] == '--userhome') and arg[i + 1] then |