mirror of
https://github.com/danderson/netboot.git
synced 2025-10-17 18:41:26 +02:00
parent
6dfafb5bcf
commit
7bde0dde1b
@ -18,6 +18,7 @@ package cli // import "go.universe.tf/netboot/pixiecore/cli"
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@ -70,7 +71,7 @@ func todo(msg string, args ...interface{}) {
|
|||||||
func serverConfigFlags(cmd *cobra.Command) {
|
func serverConfigFlags(cmd *cobra.Command) {
|
||||||
cmd.Flags().BoolP("debug", "d", false, "Log more things that aren't directly related to booting a recognized client")
|
cmd.Flags().BoolP("debug", "d", false, "Log more things that aren't directly related to booting a recognized client")
|
||||||
cmd.Flags().BoolP("log-timestamps", "t", false, "Add a timestamp to each log line")
|
cmd.Flags().BoolP("log-timestamps", "t", false, "Add a timestamp to each log line")
|
||||||
cmd.Flags().IPP("listen-addr", "l", nil, "IPv4 address to listen on")
|
cmd.Flags().IPP("listen-addr", "l", net.IPv4zero, "IPv4 address to listen on")
|
||||||
cmd.Flags().IntP("port", "p", 80, "Port to listen on for HTTP")
|
cmd.Flags().IntP("port", "p", 80, "Port to listen on for HTTP")
|
||||||
cmd.Flags().String("ipxe-bios", "", "path to an iPXE binary for BIOS/UNDI")
|
cmd.Flags().String("ipxe-bios", "", "path to an iPXE binary for BIOS/UNDI")
|
||||||
cmd.Flags().String("ipxe-efi32", "", "path to an iPXE binary for 32-bit UEFI")
|
cmd.Flags().String("ipxe-efi32", "", "path to an iPXE binary for 32-bit UEFI")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user