summaryrefslogtreecommitdiff
path: root/argv.struct.go
blob: 7088811a3bc50bc7b52d6ede148d50362402f49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0

package main

var argv args

type args struct {
	Status *EmptyCmd `arg:"subcommand:status"                    help:"should display something"`
	Test   *EmptyCmd `arg:"subcommand:test"                      help:"test stuff"`
	Daemon bool      `arg:"--daemon"           default:"false"  help:"run in daemon mode"`
	Port   int       `arg:"--port"             default:"2521"   help:"port to run on"`
	URL    string    `arg:"--url"                               help:"url to use"`
}

type EmptyCmd struct {
}