File: 04_commands--git-log.lua

package info (click to toggle)
lua-cliargs 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: sh: 118; javascript: 14; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local cli = require('cliargs')

cli:set_name('git-log')
cli:set_description('Show commit logs')

cli:flag('--[no-]follow', 'Continue listing the history of a file beyond renames (works only for a single file).')

local args, err = cli:parse()

if not args and err then
  print(err)
  os.exit(1)
end

print("git-log: follow?", args.follow)