Coder Social home page Coder Social logo

Comments (3)

dop251 avatar dop251 commented on June 28, 2024

It's run on the remote end exactly the same way as you ran it locally, i.e. if it's called with "./diskrsync" it will be called as "./diskrsync" on the remote.

As for the single dash, where do you see it? I can'r find any instances in the project.

from diskrsync.

grinapo avatar grinapo commented on June 28, 2024
  1. Would be nice if that was documented, don't you think?

  2. I guess it's the result of a go module.

$ ./diskrsync -h
Usage of ./diskrsync:
  -calc-progress
        Write calc progress
  -no-compress
        Store target as a raw file
  -source
        Source mode
  -ssh-flags string
        SSH flags
  -sync-progress
        Write sync progress
  -target
        Target mode
  -verbose
        Print statistics, progress, and some debug info

from diskrsync.

dop251 avatar dop251 commented on June 28, 2024

This looks like an output from an older version, this is what I get:

$ diskrsync -h
Usage of diskrsync:
      --cmd-path string    Remote command path (defaults to argv[0])
      --no-compress        Store target as a raw file
      --ssh-flags string   SSH flags
      --verbose            Print statistics, progress, and some debug info
pflag: help requested

(note "defaults to argv[0]"). BTW, when run without arguments it gives:

$ diskrsync
Usage: diskrsync [flags] <src> <dst>
src and dst is [[user@]host:]path

Flags:
      --cmd-path string    Remote command path (defaults to argv[0])
      --no-compress        Store target as a raw file
      --ssh-flags string   SSH flags
      --verbose            Print statistics, progress, and some debug info

Ideally, the output from -h should match this one. If you know how to do this, please open a PR.

from diskrsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.