Comments (8)
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.
help をやたらと長くはしたくないそうなので、仕様議論中
from rubyhackchallenge.
--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.
複数指定できることを言った方がいいかも?
from rubyhackchallenge.
--dump=insns,help とすると、help だけ出て終わったりするので、明言できないんすよねぇ。。
from rubyhackchallenge.
help は例外なので無視して、複数指定できる旨を記述します。
from rubyhackchallenge.
こうなりました
# -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.
スゴーイ。
from rubyhackchallenge.
Related Issues (20)
- stack に追加される部分をいじってデバッグに役立つ何かを
- ビルドしたRubyでのGemのテスト HOT 29
- Feedback on Ruby Hack Challenge #2 HOT 6
- Hash#deep_has_key?(:key) HOT 10
- Investigate possible regression in `Array#&` (Bug #14263) HOT 1
- Add ENV.slice("key")
- Hash#path_to_key(key) HOT 1
- Try to understand why one test is failing on osx "uninitialized constant HELLO" HOT 2
- Feedback on Ruby Hack Challenge #3 Bristol, UK HOT 4
- テストを追加後の図について HOT 1
- アイディア: block を渡すと警告 HOT 2
- アイディア:Range#last
- 「ビルドした Ruby での Gem のテスト」の文章が途中で途切れている
- Report a warning when you define a finaliser that captures the object being finalised
- Array#overlap?(array) HOT 1
- Array#pluck HOT 1
- Introduce Integer::MIN,MAX
- Try to identify if issues/15255 is a bug HOT 1
- Enumerable#select(pattern)
- Cannot build latest ruby with `autoconf` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubyhackchallenge.