versionInformationstring=fmt.Sprintf("ftu %s\n\nCopyright (C) 2021,2022 Kasyanov Nikolay Alexeevich (Unbewohnte (https://unbewohnte.xyz/))\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions; type \"ftu -l\" for details.\n",VERSION)
versionInformationstring=fmt.Sprintf("ftu %s\nfile transferring utility\n\nCopyright (C) 2021,2022 Kasyanov Nikolay Alexeevich (Unbewohnte (me@unbewohnte.xyz))\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions; type \"ftu -l\" for details.\n",VERSION)
//go:embed COPYING
//go:embed COPYING
licenseInformationstring
licenseInformationstring
@ -52,7 +52,7 @@ var (
funcinit(){
funcinit(){
flag.Usage=func(){
flag.Usage=func(){
fmt.Printf("ftu -[FLAG]...\n\n")
fmt.Printf("ftu -[FLAGs]\n\n")
fmt.Printf("[FLAGs]\n\n")
fmt.Printf("[FLAGs]\n\n")
fmt.Printf("| -p [Uinteger_here] for port\n")
fmt.Printf("| -p [Uinteger_here] for port\n")
@ -122,11 +122,11 @@ func main() {
VerboseOutput:*VERBOSE,
VerboseOutput:*VERBOSE,
IsSending:isSending,
IsSending:isSending,
WorkingPort:*PORT,
WorkingPort:*PORT,
ServerSide:&node.ServerSideNodeOptions{
SenderSide:&node.SenderNodeOptions{
ServingPath:*SEND,
ServingPath:*SEND,
Recursive:*RECUSRIVE,
Recursive:*RECUSRIVE,
},
},
ClientSide:&node.ClientSideNodeOptions{
ReceiverSide:&node.ReceiverNodeOptions{
ConnectionAddr:*ADDRESS,
ConnectionAddr:*ADDRESS,
DownloadsFolderPath:*DOWNLOADS_DIR,
DownloadsFolderPath:*DOWNLOADS_DIR,
},
},
@ -134,7 +134,7 @@ func main() {
node,err:=node.NewNode(&nodeOptions)
node,err:=node.NewNode(&nodeOptions)
iferr!=nil{
iferr!=nil{
fmt.Printf("Error constructing a new node: %s\n",err)
fmt.Printf("[ERROR] Error constructing a new node: %s\n",err)