Coder Social home page Coder Social logo

Comments (4)

fosspill avatar fosspill commented on June 26, 2024 1

This is well documented in the https://github.com/cedws/discord-delete/wiki/Skipping-specific-channels page. This is also linked directly from the main readme.

Basically: ./discord-delete partial -s 777813370090815590 -s 796286628817272843 -s 805364751726280745

Hopefully that's helpful :)

from discord-delete.

larryqiann avatar larryqiann commented on June 26, 2024 1

Thank you for the update. I am sorry I missed this, I do remember being on that documentation page but must have missed the example with multiple. (might have also clicked on the wrong version)

from discord-delete.

larryqiann avatar larryqiann commented on June 26, 2024

After looking at the code for "pflag" which is where the flag parsing function is from, it seems that the values have to be comma-separated.

As such, I'm guessing it's more like --skip="8xxxxx,6xxxxx,6xxxxxxx" instead

https://github.com/spf13/pflag/blob/master/string_slice.go

// StringSliceVar defines a string flag with specified name, default value, and usage string.
// The argument p points to a []string variable in which to store the value of the flag.
// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
// For example:
//   --ss="v1,v2" --ss="v3"
// will result in
//   []string{"v1", "v2", "v3"}
func StringSliceVar(p *[]string, name string, value []string, usage string) {
	CommandLine.VarP(newStringSliceValue(value, p), name, "", usage)
}

// StringSliceVarP is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash.
func StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string) {
	CommandLine.VarP(newStringSliceValue(value, p), name, shorthand, usage)
}

from discord-delete.

cedws avatar cedws commented on June 26, 2024

Hope the above answers your question.

from discord-delete.

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.