Giter Site home page Giter Site logo

Comments (8)

sonots avatar sonots commented on August 17, 2024 1

nobu says

What about --help=dump (--help=feature and so on)?

ってことで --help=dump に変わりました。

$ ./ruby --help
Usage: ./ruby [switches] [--] [programfile] [arguments]
   ...
  --dump=target[,....]
                  try --help=dump to show help messages of --dump
$ ./ruby --help=dump
Usage: ./ruby [switches] [--] [programfile] [arguments]
  --dump=insns    dump instruction sequences
  --dump=yydebug  dump yydebug of yacc parser generator
  --dump=parsetree, --dump=parsetree_with_comment
                  dump AST or AST with comments.

from rubyhackchallenge.

sonots avatar sonots commented on August 17, 2024

help をやたらと長くはしたくないそうなので、仕様議論中

from rubyhackchallenge.

sonots avatar sonots commented on August 17, 2024

ruby/ruby#1688

--dump=? を追加するのが難しい。現状、--dump=show_help で出せるようにはなった。

$ ./ruby -h
Usage: ./ruby [switches] [--] [programfile] [arguments]
  ...
  --dump=[target] try --dump=? to show valid targets
$ ./ruby --dump=show_help
$ ./ruby --dump=show_help
Usage: ./ruby [switches] [--] [programfile] [arguments]
  --dump=insns    dump YARV instructions
  --dump=yydebug  dump yydebug of yacc parser generator
  --dump=parsetree, --dump=parsetree_with_comment
                  dump parsetree or parsetree with comment

from rubyhackchallenge.

ko1 avatar ko1 commented on August 17, 2024

複数指定できることを言った方がいいかも?

from rubyhackchallenge.

sonots avatar sonots commented on August 17, 2024

--dump=insns,help とすると、help だけ出て終わったりするので、明言できないんすよねぇ。。

from rubyhackchallenge.

sonots avatar sonots commented on August 17, 2024

help は例外なので無視して、複数指定できる旨を記述します。

from rubyhackchallenge.

sonots avatar sonots commented on August 17, 2024

こうなりました

# -h では出ない
$ ./ruby --help
Usage: ./ruby [switches] [--] [programfile] [arguments]
   ...
  --dump=target[,....]
                  try --dump=help to show help messages of --dump
$ ./ruby --dump=help
Usage: ./ruby [switches] [--] [programfile] [arguments]
  --dump=insns    dump instruction sequences
  --dump=yydebug  dump yydebug of yacc parser generator
  --dump=parsetree, --dump=parsetree_with_comment
                  dump AST or AST with comments.

from rubyhackchallenge.

ko1 avatar ko1 commented on August 17, 2024

スゴーイ。

from rubyhackchallenge.

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.